Skip to content

Instantly share code, notes, and snippets.

@schallis
Created June 25, 2010 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schallis/453275 to your computer and use it in GitHub Desktop.
Save schallis/453275 to your computer and use it in GitHub Desktop.
Bookmarklet that takes a selected IP address and performs a geoip lookup.
var selection = window.getSelection();
if (/^\d+\.\d+\.\d+\.\d+$/.test(selection)) {
window.open('http://www.geoiptool.com/en/?IP=' + selection, '_blank');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment