Category Archives: Bookmarklets

Location Bookmarklets

I have made a few custom bookmarklets that I bring to my internet experience. These allow me to perform a few tasks that I do on a regular basis in one step rather than copying, surfing to a new page, pasting. These are bookmarks for let me go from Google Maps to other sites that can give me a different view of that location information. Please share any other bookmarklets or sites..

Google Maps to Zoom Earth

javascript:(function(){{params=location.href.match(/www\.google\.[a-z]{2,4}(?:\.[a-z]{2})?\/maps\/.*@(-?\d{1,3}\.\d+),(-?\d{1,3}\.\d+),(\d+\.?\d{0,2})(a|m|z)/);if(params!=null){switch(params[4]){case"z":z=params[3];break;case"m":z=20-Math.log(params[3]/86.875)/Math.log(2);break;case"a":z=20-Math.log(params[3]/186.0278)/Math.log(2);break;}window.open("http://zoom.earth/#"%20+%20params[1]%20+%20","%20+%20params[2]+%20","+Math.round(z)+"z,sat")%20;}else{alert("GoogleMaps-%3E%20ZoomEarth\nonly");}}})()

Google Maps to Ingress

javascript:(function(){{params=location.href.match(/www\.google\.[a-z]{2,4}(?:\.[a-z]{2})?\/maps\/.*@(-?\d{1,3}\.\d+),(-?\d{1,3}\.\d+),(\d+\.?\d{0,2})(a|m|z)/);if(params!=null){switch(params[4]){case"z":z=params[3];break;case"m":z=20-Math.log(params[3]/86.875)/Math.log(2);break;case"a":z=20-Math.log(params[3]/186.0278)/Math.log(2);break;}window.open("https://intel.ingress.com/intel?ll=" + params[1] + "," + params[2]+ "&z="+Math.round(z)) ;}else{alert("GoogleMaps-> ZoomEarth\nonly");}}})()

Google Maps to Twitter

javascript:(function(){{params=location.href.match(/www\.google\.[a-z]{2,4}(?:\.[a-z]{2})?\/maps\/.*@(-?\d{1,3}\.\d+),(-?\d{1,3}\.\d+),(\d+\.?\d{0,2})(a|m|z)/);if(params!=null){switch(params[4]){case"z":z=params[3];break;case"m":z=20-Math.log(params[3]/86.875)/Math.log(2);break;case"a":z=20-Math.log(params[3]/186.0278)/Math.log(2);break;}window.open("https://x.com/search?q=geocode%3A" + params[1] + "," + params[2]+ ",3km"+"&src=typed_query&f=live") ;}else{alert("GoogleMaps-> ZoomEarth\nonly");}}})()

Google Maps to GeoHack

javascript:(function(){{params=location.href.match(/www\.google\.[a-z]{2,4}(?:\.[a-z]{2})?\/maps\/.*@(-?\d{1,3}\.\d+),(-?\d{1,3}\.\d+),(\d+\.?\d{0,2})(a|m|z)/);if(params!=null){switch("z"){case"z":z=params[3];latv=Math.abs(params[1]);lat1=Math.floor(latv);lat2 = Math.floor((latv - lat1 ) * 60);lat3=Math.floor((latv-lat1-lat2 / 60) * 3600);lonv=Math.abs(params[2]);lon1=Math.floor( lonv );lon2=Math.floor((lonv-lon1) * 60);lon3=Math.floor(( lonv-lon1-lon2 / 60) * 3600);lat4 = params[1] > 0 ? 'N' : 'S' ;lon4 = params[2] > 0 ? 'E' : 'W' ;break;}window.open("https://geohack.toolforge.org/geohack.php?params=" + lat1 + "_" + lat2 +"_"+lat3+"_"+lat4+"_" + lon1 + "_" + lon2 +"_"+lon3+"_"+lon4) ;}else{alert("GoogleMaps-> GeoHack\nonly");}}})()

To look at my other bookmarklets check out these:

Bookmarklets

Custom Bookmarklets for Power Surfing

Bookmarklets

I’m a big fan of using Bookmarklets. These little bits of code make some tedious tasks easier. I posted a few of my favorites here but I have a new one to add.

javascript:void(window.open('http://fakespot.com/analyze?utf8=' + encodeURIComponent('✓') + '&url=' + encodeURIComponent(location.href) + '&commit=Analyze'))

This one checks Amazon reviews at FakeSpot.com to give you a sense if that average 4.5 star rating on a questionable buy is from real people or likely to be paid reviews.

 

Custom Bookmarklets for Power Surfing

I have made a few custom bookmarklets that I bring to my internet experience. These allow me to perform a few tasks that I do on a regular basis in one step rather than copying, surfing to a new page, pasting. These are bookmarks for productivity.

This one takes me to the Internet Archive Wayback Machine page for the current site I’m accessing:

javascript:void(location.href="https://web.archive.org/web/*/"+document.URL.split("://")[1]);

This updates the Amazon.com product page to one with my affiliate link, like for this Hard Drive I just bought.

javascript:void(location.href='http://www.amazon.com/dp/' + document.getElementsByName('ASIN')[0].value + '/?tag=000703-20')

This one uses a Google API to creates the QR-Code for the web page you are visiting.

javascript: location.href='http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl='+escape(location.href);

Camelcamelcamel is a great service that charts the Amazon.com price of all products so you can see if you are getting a good price. This bookmarklet can take me there in one step.

javascript:void(window.open('http://www.camelcamelcamel.com/product/' + document.getElementsByName('ASIN')[0].value))

I hope that these can be useful to you or even inspire you to create new bookmarklets to serve your purposes.