From 864f722020e7b50ff07422d718f599c550c57f6d Mon Sep 17 00:00:00 2001 From: qsniyg Date: Fri, 9 Feb 2024 12:04:03 +0000 Subject: [PATCH] More websites/rules --- src/userscript.ts | 17 +++++++++++++++-- userscript.user.js | 15 +++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/userscript.ts b/src/userscript.ts index c51f61ca..80ee6c42 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -93301,7 +93301,7 @@ var $$IMU_EXPORT$$; } }, process: function(done, resp, cache_key) { - var match = resp.responseText.match(/]+href=["'](https?:\/\/i\.pixxxels\.cc\/+[^"']+\?dl=1)["']/); + var match = resp.responseText.match(/]+href=["'](https?:\/\/i\.[a-z]+\.cc\/+[^"']+\?dl=1)["']/); if (!match) { console_error(cache_key, "Unable to find download link for", resp); return done(null, false); @@ -93310,7 +93310,7 @@ var $$IMU_EXPORT$$; var dllink = decode_entities(match[1]).replace(/[?#].*$/, ""); var referer = resp.finalUrl; - match = resp.responseText.match(/]+href=["'](https?:\/\/i\.pixxxels\.cc\/+[^"']+\?dl=1)["']/); + var match = resp.responseText.match(/]+href=["'](https?:\/\/i\.[a-z]+\.cc\/+[^"']+\?dl=1)["']/); if (!match) { console_error(cache_key, "Unable to find download link for", resp); return done(null, false); } var dllink = decode_entities(match[1]).replace(/[?#].*$/, ""); var referer = resp.finalUrl; - match = resp.responseText.match(/