Last active
September 30, 2016 17:13
-
-
Save simonv3/11257371 to your computer and use it in GitHub Desktop.
Goodreads Bookmarklet. Based on the bookmarklet provided by goodreads, but actually working.
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
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update: Just added the ability to recognize ASIN numbers in the URL.