jroakes

seo

Aug 5th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. var seo = {}
  3.  
  4. seo.getDomainInformation = () => {
  5.  
  6.     var newTabs = (tools, features) => {
  7.  
  8.         var n_win = window.open('', '', 'height=800,width=1000');
  9.         var n_doc = n_win.document;
  10.  
  11.         for (item in tools){
  12.             var tool = tools[item];
  13.             console.log('Opening: ' + tool);
  14.             var t_frame = n_doc.createElement('iframe');
  15.             t_frame.src = tool;
  16.             t_frame.referrerPolicy = 'origin'
  17.             t_frame.width = "100%";
  18.             t_frame.height = "600px";
  19.             t_frame.scrolling = true;
  20.             t_frame.src = tool;
  21.             t_frame.style = "margin: 0 auto 40px 0; display:block;"
  22.             n_doc.body.style = "background: black;";
  23.             n_doc.body.appendChild(t_frame);
  24.  
  25.  
  26.            
  27.         }
  28.         window.blur()
  29.     }
  30.  
  31.     const tools = [
  32.                     "https://whois.domaintools.com/"+encodeURIComponent(window.location.hostname),
  33.                     "https://spyonweb.com/"+encodeURIComponent(window.location.hostname),
  34.                     "https://builtwith.com/?"+encodeURIComponent(window.location.hostname)
  35.                     ];
  36.     const features = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes";
  37.  
  38.     newTabs(tools, features);
  39.    
  40.  
  41. }
  42.  
  43.  
  44. seo.ipinfo = () => {
  45.  
  46.     var options = {
  47.         method: 'GET',
  48.         mode: 'cors',
  49.         cache: 'no-cache',
  50.         credentials: 'same-origin',
  51.         headers: {
  52.           'Content-Type': 'application/json',
  53.           'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36'
  54.         },
  55.         redirect: 'follow',
  56.         referrerPolicy: 'no-referrer'
  57.     }
  58.  
  59.  
  60.   fetch('https://ipinfo.io/json', options)
  61.   .then(response => response.json())
  62.   .then(data => console.log(JSON.stringify(data) ));
  63.  
  64. }
Add Comment
Please, Sign In to add comment