I have a kindle and use Calibre to send it documents. Because I have Personal Documents archival enabled (and don't want to disable it), Amazon stores all of my news items in the archive. These extraneous items make it hard to find the books that I want archived.
I found the code below here to delete all items as a bookmarklet. How can I filter to it to only delete some of them? I'm not very familiar with Javascript, but learning is fun, right?
javascript:(function(){
var v = new RegExp("PersonalDocuments");
if (!v.test(document.URL)) {
return false;
}
else
{
a=document.getElementsByClassName('rowBodyCollapsed');
for(var i = 0;
i<a.length;
i++){
Fion.deleteItem('deleteItem_'+a[i].getAttribute('asin'));
};
return;
}
})();