Created
June 25, 2010 18:50
-
-
Save schallis/453275 to your computer and use it in GitHub Desktop.
Bookmarklet that takes a selected IP address and performs a geoip lookup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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