Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==UserScript==
// @name delete kindle item
// @namespace basyura@gmail.com
// @include https://www.amazon.com/gp/digital/fiona/manage*
// @include https://www.amazon.co.jp/gp/digital/fiona/manage*
// @version 1
// ==/UserScript==
jQuery('<button id="delete_all_item" style="margin-left:10px;">delete all</button>').insertAfter('#searchTextGoButton');
jQuery('#delete_all_item').click(function () {
jQuery('.headerStatus').each(function(){
var asin = jQuery(this).attr('id').replace(/^Row.*_/,'');
Fion.deleteItem(' ' + asin);
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.