Skip to content

Instantly share code, notes, and snippets.

@simonv3
Last active September 30, 2016 17:13
Show Gist options
  • Save simonv3/11257371 to your computer and use it in GitHub Desktop.
Save simonv3/11257371 to your computer and use it in GitHub Desktop.
Goodreads Bookmarklet. Based on the bookmarklet provided by goodreads, but actually working.
<a href="javascript: var array = document.URL.match(/amazon\.(.*?)\/.*?\/((\d|[A-Z]){10})/); if (array == null) {alert('Sorry, this doesn\'t appear to be an Amazon book page.'); } else {var x = window.open('https://www.goodreads.com/review/isbn/'+ array[2] + '?tld=' + array[1] + '&from=bm', 'add_review'); x.focus(); }"class="mediumText">Add to Goodreads</a>
@simonv3
Copy link
Author

simonv3 commented Sep 5, 2014

Update: Just added the ability to recognize ASIN numbers in the URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment