Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function delmail() {
- const search_re=/Torrent Deleted -/g
- found=0; deleted=0;
- $("#tabs-sent > table > tbody > *").find("a").each(function(){
- found++;
- if (search_re.test($(this)[0].title) &&
- ($($(this)[0].parentElement).find("img").length) &&
- ($($(this)[0].parentElement).find("img")[0].src=="https://animetorrents.me/images/star-full.png")){
- $.get(
- "https://animetorrents.me/user-messages.php",
- {
- msgid: $(this)[0].href.replace(/.*msgid=(\d+).*/g,"$1"),
- DeleteMsg: "Delete"
- }
- );
- deleted++;
- };
- });
- console.log("Found "+found+" message"+(found==1?".":"s."));
- console.log("Deleted "+deleted+" message"+(deleted==1?".":"s."));
- }
- //
- // Example of use. Browse to https://animetorrents.me/user-messages.php#tabs-sent
- // Open your developer console (chrome ctrl-shift-j, firefox ctrl-shift-k), and paste the function above.
- // After that, invoke with no arguments.
- // Note - Only messages with titles containing "Torrent Deleted -" and that were sent with a Prompt User
- // will be deleted. This includes all normal torrent delete messages, but not replies to them.
- //
- // delmail();
- // Found 1252 messages.
- // Deleted 13 messages.
Add Comment
Please, Sign In to add comment