Want more features on Pastebin? Sign Up, it's FREE!
Guest

Ghost Entries (Manga)

By: moonlit on Jan 28th, 2012  |  syntax: JavaScript  |  size: 0.80 KB  |  views: 478  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. javascript:var untitled = $('td.borderClass > strong:empty').parent(); if(untitled && untitled.length > 0) { untitled.each( function() { $(this).append("Removing..."); var ghostID = $(this).children('a').attr('href').match(/^manga.php\?id=([0-9]+)$/)[1]; var seriesID = $(this).prev('td').children('a').attr('href').match(/^\?go=editmanga\&id=([0-9]+)$/)[1]; $.ajax({type: 'POST', async: false, context: $(this), url: 'http://myanimelist.net/panel.php\?go=editmanga\&id=' + seriesID, data: { entry_id: seriesID, mangaid: ghostID, manga_id: ghostID, submitIt: '3' }, success: function() { $(this).append("Ghost entry " + ghostID + " removed."); }, error:function (){ $(this).append("Failed to delete " + ghostID + ", try again in a moment."); }}); }); location.reload(true); } else alert('Could not find any ghost entries.');
clone this paste RAW Paste Data