Skip to content

Instantly share code, notes, and snippets.

@luckycdev
Last active April 29, 2022 15:25
Show Gist options
  • Save luckycdev/7d39977c49675a4233bdbe8b35795c74 to your computer and use it in GitHub Desktop.
Save luckycdev/7d39977c49675a4233bdbe8b35795c74 to your computer and use it in GitHub Desktop.
lookup domains and their prices using name.com with a bookmarklet

Code:

javascript:
var a="https://www.name.com/domain/search/";
var b=prompt("What domain would you like to lookup?\nPlease do not include http:// or https://", "example.com");
if (b==="")
{
alert("invalid response");
}
else if (b===" ")
{
alert("invalid response");
}
else if (b!=null)
{
open(a+b);
}

Bookmarklet:

javascript:var a="https://www.name.com/domain/search/";var b=prompt("What domain would you like to lookup?\nPlease do not include http:// or https://", "example.com");if (b===""){alert("invalid response");}else if (b===" "){alert("invalid response");}else if (b!=null){open(a+b);}
javascript:var a="https://www.name.com/domain/search/";var b=prompt("What domain would you like to lookup?\nPlease do not include http:// or https://", "example.com");if (b===""){alert("invalid response");}else if (b===" "){alert("invalid response");}else if (b!=null){open(a+b);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment