Fix filemoon.to

This commit is contained in:
2024-12-15 17:13:30 +01:00
parent b9514284da
commit e522916585
5 changed files with 69 additions and 36 deletions

View File

@ -20,10 +20,16 @@ async function main() {
return;
}
const re = document.body.innerHTML.match(match.regex);
let re = null;
for (const regex of match.regex) {
if ((re = document.body.innerHTML.match(regex)) !== null) {
break;
}
}
if (re === null) {
return;
}
if (redirect) {
await Redirect.delete();
}