-
-
Save xamantra/0abdec366eebcea622f569ff838a7fda to your computer and use it in GitHub Desktop.
var index = 0; | |
if (confirm(`Are you sure you want to DELETE ALL your entries in this section?`)) { | |
$("a.animetitle").each(function () { | |
var animeLink = $(this).attr("href"); | |
var animeId = animeLink.substring( | |
animeLink.lastIndexOf("anime/") + 6, | |
animeLink.lastIndexOf("/") | |
); | |
var deleteUrl = `/ownlist/anime/${animeId}/delete`; | |
setTimeout(function () { | |
console.log(`[DELETE] Executing "${deleteUrl}"...`); | |
$.ajax({ | |
type: "POST", | |
url: deleteUrl | |
}); | |
}, index * 1000); | |
index++; | |
}); | |
} |
var index = 0; | |
if (confirm(`Are you sure you want to DELETE ALL your entries in this section?`)) { | |
$("#list-container > div.list-block > div > table > tbody > tr.list-table-data > td.data.image > a").each(function () { | |
var animeLink = $(this).attr("href"); | |
var animeId = animeLink.substring( | |
animeLink.lastIndexOf("anime/") + 6, | |
animeLink.lastIndexOf("/") | |
); | |
var deleteUrl = `/ownlist/anime/${animeId}/delete`; | |
setTimeout(function () { | |
console.log(`[DELETE] Executing "${deleteUrl}"...`); | |
$.ajax({ | |
type: "POST", | |
url: deleteUrl | |
}); | |
}, index * 1000); | |
index++; | |
}); | |
} |
var index = 0; | |
if (confirm(`Are you sure you want to DELETE ALL your entries in this section?`)) { | |
$("a.animetitle").each(function () { | |
var mangaLink = $(this).attr("href"); | |
var mangaId = mangaLink.substring( | |
mangaLink.lastIndexOf("manga/") + 6, | |
mangaLink.lastIndexOf("/") | |
); | |
var deleteUrl = `/ownlist/manga/${mangaId}/delete`; | |
setTimeout(function () { | |
console.log(`[DELETE] Executing "${deleteUrl}"...`); | |
$.ajax({ | |
type: "POST", | |
url: deleteUrl | |
}); | |
}, index * 1000); | |
index++; | |
}); | |
} |
var index = 0; | |
if (confirm(`Are you sure you want to DELETE ALL your entries in this section?`)) { | |
$("#list-container > div.list-block > div > table > tbody > tr.list-table-data > td.data.image > a").each(function () { | |
var mangaLink = $(this).attr("href"); | |
var mangaId = mangaLink.substring( | |
mangaLink.lastIndexOf("manga/") + 6, | |
mangaLink.lastIndexOf("/") | |
); | |
var deleteUrl = `/ownlist/manga/${mangaId}/delete`; | |
setTimeout(function () { | |
console.log(`[DELETE] Executing "${deleteUrl}"...`); | |
$.ajax({ | |
type: "POST", | |
url: deleteUrl | |
}); | |
}, index * 1000); | |
index++; | |
}); | |
} |
The script does not work anymore, probably due to an update to the MAL site. It can be fixed by changing the 3rd line to
$("a.animetitle").each(function () {I tried this, but didn't work. I'll look this up again later.
The original script works just fine here.
@KennethBenicio Can you send me the exact link of the site on which it works for you?
@KennethBenicio Can you send me the exact link of the site on which it works for you?
I used the script on my MAL's Plan to Watch page
@KennethBenicio Can you send me the exact link of the site on which it works for you?
I used the script on my MAL's Plan to Watch page
This is weird. As you can see here, for me only my version works. Do you have a skin? What's your browser? Maybe MAL changes depending on the browser.
I have a suspicion that the issue is on the custom list layout.
I'm going to try to experiment this later after I got home since I'll be having lots of free time.
IMPORTANT NOTICE
The original script doesn't work on "classic" list design. It works fine on modern style design (and I don't think custom list design matters): See This
Edit: I renamed the original script to indicate that's for modern list style and added separate script for classic list style.
Where do you put this code so it can work?
Where do you put this code so it can work?
You put it in here
If you are on your plan to watch section, your plan to watch will be deleted. Same goes for other tabs.
Thanks! and I was wondering if it works on the manga list too?
Thanks! and I was wondering if it works on the manga list too?
Currently it doesn't, but it's easy to write another script for that. Will do it later.
Thanks! and I was wondering if it works on the manga list too?
just change the line: animeLink.lastIndexOf("anime/") + 6, to animeLink.lastIndexOf("manga/") + 6,
and var deleteUrl = /ownlist/anime/${animeId}/delete
; to var deleteUrl = /ownlist/manga/${animeId}/delete
;
worked for me
I used the classic anime, and the classic manga, they worked perfectly. Arigatou!
Thank you so much, still works perfectly. Just make sure you use the correct version.
If you wanna do it on your phone, use kiwi browser.
The moronic mods on MAL are literally telling ppl not to use scripts, not to create new accounts, they're both bannable offenses. And to just suffer through it and remove everything manually because the other methods are taxing on their servers.... I'd rather switch service than waste an hour doing it manually
I tried this, but didn't work. I'll look this up again later.