Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@basyura
Created December 15, 2012 06:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basyura/4291671 to your computer and use it in GitHub Desktop.
Save basyura/4291671 to your computer and use it in GitHub Desktop.
// ==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