Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var seo = {}
- seo.getDomainInformation = () => {
- var newTabs = (tools, features) => {
- var n_win = window.open('', '', 'height=800,width=1000');
- var n_doc = n_win.document;
- for (item in tools){
- var tool = tools[item];
- console.log('Opening: ' + tool);
- var t_frame = n_doc.createElement('iframe');
- t_frame.src = tool;
- t_frame.referrerPolicy = 'origin'
- t_frame.width = "100%";
- t_frame.height = "600px";
- t_frame.scrolling = true;
- t_frame.src = tool;
- t_frame.style = "margin: 0 auto 40px 0; display:block;"
- n_doc.body.style = "background: black;";
- n_doc.body.appendChild(t_frame);
- }
- window.blur()
- }
- const tools = [
- "https://whois.domaintools.com/"+encodeURIComponent(window.location.hostname),
- "https://spyonweb.com/"+encodeURIComponent(window.location.hostname),
- "https://builtwith.com/?"+encodeURIComponent(window.location.hostname)
- ];
- const features = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes";
- newTabs(tools, features);
- }
- seo.ipinfo = () => {
- var options = {
- method: 'GET',
- mode: 'cors',
- cache: 'no-cache',
- credentials: 'same-origin',
- headers: {
- 'Content-Type': 'application/json',
- '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'
- },
- redirect: 'follow',
- referrerPolicy: 'no-referrer'
- }
- fetch('https://ipinfo.io/json', options)
- .then(response => response.json())
- .then(data => console.log(JSON.stringify(data) ));
- }
Add Comment
Please, Sign In to add comment