Skip to content

Commit

Permalink
Improve zerochan rule (fixes #1341)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Jul 6, 2024
1 parent 9143628 commit aeafc33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52134,6 +52134,10 @@ var $$IMU_EXPORT$$;
// https://static.zerochan.net/IA.full.878867.jpg
// https://static.zerochan.net/Kirigaya.Kazuto.600.1450176.jpg
// https://static.zerochan.net/Kirigaya.Kazuto.full.1450176.jpg
// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1341
// https://s1.zerochan.net/Berusaiyu.no.Bara.600.3749354.jpg
// https://static.zerochan.net/Berusaiyu.no.Bara.full.3749354.png

obj = {
url: src
};
Expand All @@ -52150,6 +52154,10 @@ var $$IMU_EXPORT$$;
// https://static.zerochan.net/full/21/19/413471.jpg
.replace(/(:\/\/[^/]+\/+)[0-9]+\/+([0-9]+\/+[0-9]+\/+[0-9]+\.)/, "$1full/$2");

if (obj.url !== src) {
return fillobj_urls(add_extensions(obj.url), obj);
}

return obj;
}

Expand Down
6 changes: 6 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -47559,6 +47559,9 @@ var $$IMU_EXPORT$$;
// https://static.zerochan.net/IA.full.878867.jpg
// https://static.zerochan.net/Kirigaya.Kazuto.600.1450176.jpg
// https://static.zerochan.net/Kirigaya.Kazuto.full.1450176.jpg
// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1341
// https://s1.zerochan.net/Berusaiyu.no.Bara.600.3749354.jpg
// https://static.zerochan.net/Berusaiyu.no.Bara.full.3749354.png
obj = {
url: src
};
Expand All @@ -47572,6 +47575,9 @@ var $$IMU_EXPORT$$;
// https://static.zerochan.net/240/21/19/413471.jpg
// https://static.zerochan.net/full/21/19/413471.jpg
.replace(/(:\/\/[^/]+\/+)[0-9]+\/+([0-9]+\/+[0-9]+\/+[0-9]+\.)/, "$1full/$2");
if (obj.url !== src) {
return fillobj_urls(add_extensions(obj.url), obj);
}
return obj;
}
if (domain === "cdn.aibooru.download") {
Expand Down

0 comments on commit aeafc33

Please sign in to comment.