Skip to content

Commit

Permalink
Make Khoros rule generic (fixes #1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Nov 4, 2023
1 parent 0595cd6 commit 5a0cb10
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
13 changes: 10 additions & 3 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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 {
Expand Down
13 changes: 10 additions & 3 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5a0cb10

Please sign in to comment.