Skip to content

Instantly share code, notes, and snippets.

@smallstyle
Created October 27, 2012 15:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smallstyle/3965085 to your computer and use it in GitHub Desktop.
Save smallstyle/3965085 to your computer and use it in GitHub Desktop.
Kindle Personal Documentの一覧に一発削除用の「×」マークを付ける
jQuery(function($) {
jQuery('#orders-div').bind('DOMNodeInserted', function(event){
var t = jQuery(event.target);
if (t.hasClass('rowHeaderCollapsed')) {
var e = t.find('span.headerStatus');
e.append(jQuery('<a>').attr('href', e.attr('id').replace(/^Row.*_/,'javascript:Fion.deleteItem("deleteItem_') + '");return false;').text('×'));
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment