Skip to content

Instantly share code, notes, and snippets.

@adamawolf
Created January 25, 2013 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamawolf/4636907 to your computer and use it in GitHub Desktop.
Save adamawolf/4636907 to your computer and use it in GitHub Desktop.
Faced with 80 old Instapaper Kindle documents and no delete all button, I did what any self respecting coder would do.
//load jquery in console separately first
var jq = document.createElement('script');
jq.src = "http://code.jquery.com/jquery-latest.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict();
//delete ALL entries currently listed in Manage Your Kindle screen
idsToDelete = []
$('form[name="fionaDL"] input[name="contentName"]').each(function () { idsToDelete.push(this.value); })
$(idsToDelete).each(function() {Fion.deleteItem('deleteItem_' + this);})
@adamawolf
Copy link
Author

In my case I used this on https://www.amazon.com/gp/digital/fiona/manage?ie=UTF8&*Version*=1&*entries*=0#PersonalDocuments which listed only the Instapaper entries I wanted to delete.

@NightMachinery
Copy link

Can you update this to delete all entries matching a regex?

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