-
-
Save codyaray/1812445f62e4706b6684 to your computer and use it in GitHub Desktop.
Bookmarklet for adding Amazon books to Goodreads
This file contains 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
javascript: var array = document.URL.match(/amazon\.(.*?)\/.*?\/([^/]{10})/); if (array == null) { alert('Sorry, this doesn\'t appear to be an Amazon book page.'); } else { var x = window.open('http://www.goodreads.com/review/isbn/'+ array%5B2%5D + '?tld=' + array%5B1%5D + '&from=bm', 'add_review'); x.focus(); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For what it's worth, this is great. Well done.