This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: saka on Nov 5th, 2011  |  syntax: JavaScript  |  size: 0.83 KB  |  views: 923  |  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(/^\/anime\/([0-9]+)$/)[1]; var seriesID = $(this).prev('td').children('a').attr('href').match(/^\?type=anime\&id=([0-9]+)$/)[1]; $.ajax({type: 'POST', async: false, context: $(this), url: 'http://myanimelist.net/editlist.php?type=anime&id=' + seriesID, data: { series_id: seriesID, animeid: seriesID, series_title: ghostID, anime_db_series_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