Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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 =''+ array%5B2%5D + '?tld=' + array%5B1%5D + '&from=bm', 'add_review'); x.focus(); }

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