Created
January 25, 2013 19:00
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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);}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you update this to delete all entries matching a regex?