I’m a big fan of Goodreads.com for maintaining a list of what I want to read.
Goodreads just recently gave up on using Amazon for its data source, but I wanted a dead-simple way to switch between the two sites for any given book I’m viewing. There didn’t seem to be anything out there, so I quickly threw together a javascript bookmarklet to switch between Amazon and Goodreads.
1 | javascript:u=location.href;if(u.match(/https?:\/\/(www\.)?amazon\./)!==null){var m=document.body.innerHTML.match(/ISBN-\d{2}:<[^>]+> ([0-9]{9,13})/);if(m!==null){location.href='http://goodreads.com/search?query='+m[1];}}else if(u.match(/https?:\/\/(www\.)?goodreads\./)!==null){var metas=document.getElementsByTagName('meta');for(var i in metas){var m=metas[i];if(m.getAttribute('property')=='good_reads:isbn'){location.href='http://amazon.com/dp/'+m.getAttribute('content');};};}else{void(0);} |
Just drag this button to your bookmarks toolbar: Switch Amazon/Goodreads
It’s certainly not perfect or even efficient, but it does the job for me so I wanted to share. I put it in a public gist on GitHub, so please feel free to improve it as you see fit.


It’s ask the audience time: what do you keep in your car? Everyone has a different answer, and I don’t think there’s any right or wrong answer. (Unless your answer is “a dead body” in which case that is a very wrong answer.)