Skip to content

Instantly share code, notes, and snippets.

@dnohales
dnohales / FastKindleLibrary.js
Last active December 14, 2015 05:49
Use this code to fast delete items from your Kindle library (https://www.amazon.com/gp/digital/fiona/manage). Go to your Kindle Library and execute this snippet on Firebug or on your favorite browser web console. You will be prompted for each item if you want to delete it.
(function(){
var itemsToDelete = [];
jQuery("tr.rowHeaderCollapsed").each(function(){
var titleCell = jQuery(this).find("td:nth-child(2) .headerTitle");
var title = titleCell.text();
var id = titleCell.find(".headerStatus").attr("id");
id = id.substring(id.indexOf("_")+1);
if(confirm("Want to delete \""+title+"\"?")){