Skip to content

Instantly share code, notes, and snippets.

@jamiebicknell
Created July 24, 2013 13:38
Show Gist options
  • Save jamiebicknell/6070661 to your computer and use it in GitHub Desktop.
Save jamiebicknell/6070661 to your computer and use it in GitHub Desktop.
IP Address Bookmarkelet
javascript:(function(){var a=new XMLHttpRequest();a.open("GET","http://jsonip.appspot.com",true);a.onreadystatechange=function(b){if(a.readyState===4&&a.status===200){var c=JSON.parse(a.responseText);prompt("Your IP Address is:",c.address)}};a.send(null)})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment