My ultimate goal is to export a list of my Kindle purchase history. It doesn't look like that is possible on Amazon's site. Amazon has an integration with Goodreads and Goodreads allows you to export your information.


The problem is that you have to click on every book to add it to Goodreads. I'm pretty lazy. Is there a faster way through maybe a script to do this?

2 Answers 2


I found the button class for the 'Want to Read' button and looped through and clicked them all by running this Javascript in the console.

var buttonArray = document.getElementsByClassName('w-button-common w-button-unfollow'); for(var a=0;a<buttonArray.length;a++){ buttonArray[a].click(); }

I tried the JavaScript you included but got an error. However I was able to leverage your approach using:

var buttonArray = document.getElementsByClassName('wtrToRead'); 
for (var a = 0; a < buttonArray.length; a++) {

Looks like the button names may have changed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.