Skip to content

Instantly share code, notes, and snippets.

@codyaray
Created December 7, 2013 18:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codyaray/1812445f62e4706b6684 to your computer and use it in GitHub Desktop.
Save codyaray/1812445f62e4706b6684 to your computer and use it in GitHub Desktop.
Bookmarklet for adding Amazon books to Goodreads
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(); }
@bmcguirk
Copy link

bmcguirk commented Dec 7, 2016

For what it's worth, this is great. Well done.

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