Skip to content

Instantly share code, notes, and snippets.

@luckycdev
Created April 28, 2022 02:13
Show Gist options
  • Save luckycdev/d19a7f20996f777cb60e05f8944b86b4 to your computer and use it in GitHub Desktop.
Save luckycdev/d19a7f20996f777cb60e05f8944b86b4 to your computer and use it in GitHub Desktop.
lookup info about the website you are on with who.is

Not that good, if a url has a subdomain (sub.example.com) it might not work

Code:

javascript:
var a="https://who.is/whois/";
var b=location.host;
var c=confirm("Are you sure you want to leave this site? You will lookup "+b);
if(c!=false)
{
open(a+b);
}

Bookmarklet:

javascript:var a="https://who.is/whois/";var b=location.host;var c=confirm("Are you sure you want to leave this site? You will lookup "+b);if(c!=false){open(a+b);}
javascript:var a="https://who.is/whois/";var b=location.host;var c=confirm("Are you sure you want to leave this site? You will lookup "+b);if(c!=false){open(a+b);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment