Skip to content

Instantly share code, notes, and snippets.

@wildjcrt
Created March 9, 2012 16:02
batch delete Kindle Personal Document js code
javascript:(function(){ var v = new RegExp("PersonalDocuments"); if (!v.test(document.URL)) { return false; } {a=document.getElementsByClassName('rowBodyCollapsed');for(var i = 0; i<a.length; i++){Fion.deleteItem('deleteItem_'+a[i].getAttribute('asin'));};return; }})();
@stringbot
Copy link

Awesome. Totally saved me about an hour of clicking. Thanks :)

Uh oh!

There was an error while loading. Please reload this page.

@excerlee
Copy link

Since Amazon change the "Manage Kindle Library" to https://www.amazon.com/gp/digital/fiona/manage?ie=UTF8&*Version*=1&*entries*=0&#All, the JS should be:

javascript:(function(){ var v = new RegExp("fiona"); if (!v.test(document.URL)) { return false; } {a=document.getElementsByClassName('rowBodyCollapsed');for(var i = 0; i<a.length; i++){Fion.deleteItem('deleteItem_'+a[i].getAttribute('asin'));};return; }})();

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