Skip to content

Instantly share code, notes, and snippets.

@wildjcrt
Created March 9, 2012 16:02
Show Gist options
  • Save wildjcrt/2007247 to your computer and use it in GitHub Desktop.
Save wildjcrt/2007247 to your computer and use it in GitHub Desktop.
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; }})();
@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