From 5a0cb105a71aaddff3e4cf0a809cf3af678932fd Mon Sep 17 00:00:00 2001 From: qsniyg Date: Sat, 4 Nov 2023 11:41:39 +0000 Subject: [PATCH] Make Khoros rule generic (fixes #1231) --- src/userscript.ts | 13 ++++++++++--- userscript.user.js | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/userscript.ts b/src/userscript.ts index 102ee7dd..8bd9b287 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -28612,7 +28612,9 @@ var $$IMU_EXPORT$$; .replace(/\/+fit=[0-9x]+\/+fit=[0-9x]+/, "/fit=99999999999"); } - if (domain_nowww === "marcusgetta.photography") { + if (domain_nowww === "marcusgetta.photography" || + // thanks to anonymous for reporting: + domain_nowww === "schreyer-photo.com") { // thanks to meloner on discord for reporting: // https://www.marcusgetta.photography/img-get2/I0000RIQ98yTy98k/fill=/fit=188x188/I0000RIQ98yTy98k.jpg // https://ssl.c.photoshelter.com/img-get2/I0000RIQ98yTy98k/fit=99999999999/I0000RIQ98yTy98k.jpg @@ -53469,9 +53471,14 @@ var $$IMU_EXPORT$$; // https://community.amd.com/t5/image/serverpage/image-id/93895i9433DD446475FD0C/image-size/large?v=v2&px=999 // https://community.amd.com/t5/image/serverpage/image-id/93895i9433DD446475FD0C?v=v2 domain === "community.amd.com" || + // thanks to oifj34f34f on github: https://github.com/qsniyg/maxurl/issues/1231 + // https://community.spotify.com/t5/image/serverpage/image-id/164115iB6FC1DFABF76FC91/image-size/medium?v=v2&px=400 + // https://community.spotify.com/t5/image/serverpage/image-id/164115iB6FC1DFABF76FC91?v=v2 + domain === "community.spotify.com" || // https://nasz.orange.pl/t5/image/serverpage/image-id/1694i6BBA12E8BB8E9254/image-size/small/is-moderation-mode/true?v=1.0&px=400 // https://nasz.orange.pl/t5/image/serverpage/image-id/1694i6BBA12E8BB8E9254?v=1.0 - domain === "nasz.orange.pl") { + domain === "nasz.orange.pl" || + /^[a-z]+:\/\/[^/]+\/+t5\/+image\/+serverpage\/+image-id\/+[0-9]+i[0-9A-F]+\//.test(src)) { // https://spotify.i.lithium.com/t5/image/serverpage/image-id/84635i3C36019474421E94/image-size/large?v=1.0&px=999 // https://spotify.i.lithium.com/t5/image/serverpage/image-id/84635i3C36019474421E94/image-size/original?v=1.0 var v = src.replace(/.*[?&](v=[^&]*).*/, "$1"); @@ -106929,7 +106936,7 @@ var $$IMU_EXPORT$$; } } - if (domain_nosub === "bunkr.ru" && /^(?:i[0-9]*|[-a-z]+-[0-9]*img)\./.test(domain)) { + if (domain_nosub === "bunkr.ru" && /^(?:i[0-9]*|[-a-z]+-[0-9]*img|i-[a-z]+)\./.test(domain)) { // https://i8.bunkr.ru/404-file-video-not-found-OiF5LGXg.jpg if (/\/404-file-video-not-found-OiF5LGXg\./.test(src)) return { diff --git a/userscript.user.js b/userscript.user.js index cdaa82b3..0ba78efb 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -26086,7 +26086,9 @@ var $$IMU_EXPORT$$; .replace(/\/img-get\/([^/]*)(?:\/[ts]\/[0-9]+\/(?:[0-9]+\/)?)?([^/]*)$/, "/img-get2/$1/fit=99999999999/$2") .replace(/\/+fit=[0-9x]+\/+fit=[0-9x]+/, "/fit=99999999999"); } - if (domain_nowww === "marcusgetta.photography") { + if (domain_nowww === "marcusgetta.photography" || + // thanks to anonymous for reporting: + domain_nowww === "schreyer-photo.com") { // thanks to meloner on discord for reporting: // https://www.marcusgetta.photography/img-get2/I0000RIQ98yTy98k/fill=/fit=188x188/I0000RIQ98yTy98k.jpg // https://ssl.c.photoshelter.com/img-get2/I0000RIQ98yTy98k/fit=99999999999/I0000RIQ98yTy98k.jpg @@ -48650,9 +48652,14 @@ var $$IMU_EXPORT$$; // https://community.amd.com/t5/image/serverpage/image-id/93895i9433DD446475FD0C/image-size/large?v=v2&px=999 // https://community.amd.com/t5/image/serverpage/image-id/93895i9433DD446475FD0C?v=v2 domain === "community.amd.com" || + // thanks to oifj34f34f on github: https://github.com/qsniyg/maxurl/issues/1231 + // https://community.spotify.com/t5/image/serverpage/image-id/164115iB6FC1DFABF76FC91/image-size/medium?v=v2&px=400 + // https://community.spotify.com/t5/image/serverpage/image-id/164115iB6FC1DFABF76FC91?v=v2 + domain === "community.spotify.com" || // https://nasz.orange.pl/t5/image/serverpage/image-id/1694i6BBA12E8BB8E9254/image-size/small/is-moderation-mode/true?v=1.0&px=400 // https://nasz.orange.pl/t5/image/serverpage/image-id/1694i6BBA12E8BB8E9254?v=1.0 - domain === "nasz.orange.pl") { + domain === "nasz.orange.pl" || + /^[a-z]+:\/\/[^/]+\/+t5\/+image\/+serverpage\/+image-id\/+[0-9]+i[0-9A-F]+\//.test(src)) { // https://spotify.i.lithium.com/t5/image/serverpage/image-id/84635i3C36019474421E94/image-size/large?v=1.0&px=999 // https://spotify.i.lithium.com/t5/image/serverpage/image-id/84635i3C36019474421E94/image-size/original?v=1.0 var v = src.replace(/.*[?&](v=[^&]*).*/, "$1"); @@ -95915,7 +95922,7 @@ var $$IMU_EXPORT$$; }; } } - if (domain_nosub === "bunkr.ru" && /^(?:i[0-9]*|[-a-z]+-[0-9]*img)\./.test(domain)) { + if (domain_nosub === "bunkr.ru" && /^(?:i[0-9]*|[-a-z]+-[0-9]*img|i-[a-z]+)\./.test(domain)) { // https://i8.bunkr.ru/404-file-video-not-found-OiF5LGXg.jpg if (/\/404-file-video-not-found-OiF5LGXg\./.test(src)) return {