Skip to content

Commit

Permalink
Support more subdomains for sueddeutsche.de (fixes #949)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 1, 2024
1 parent 8923467 commit 1902b18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80433,9 +80433,14 @@ var $$IMU_EXPORT$$;
return src.replace(/\/images\/+_crop[0-9]+x[0-9]+\/+/, "/images/");
}

if (domain === "media-cdn.sueddeutsche.de") {
if (domain_nosub === "sueddeutsche.de") {
// https://media-cdn.sueddeutsche.de/image/sz.1.4449065/560x560?cropRatios=0:0-BiGa-www&cropRatios=3:2&cropRatios=2:3&method=resize&v=1558023698
// https://media-cdn.sueddeutsche.de/image/sz.1.4449065
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/949
// https://www.sueddeutsche.de/image/sz.1.5437983/2000x840?v=1634059405000&format=webp
// https://www.sueddeutsche.de/image/sz.1.5437983
// https://www.sueddeutsche.de/image/sz.1.5434756/1408x792?v=1633716337&format=webp
// https://www.sueddeutsche.de/image/sz.1.5434756
return src.replace(/(\/image\/+sz\.[0-9]+\.[0-9]+)\/+.*$/, "$1");
}

Expand Down
7 changes: 6 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -72534,9 +72534,14 @@ var $$IMU_EXPORT$$;
// https://www.readdork.com/images/Carly-Rae-Jepsen-Too-Much.jpg
return src.replace(/\/images\/+_crop[0-9]+x[0-9]+\/+/, "/images/");
}
if (domain === "media-cdn.sueddeutsche.de") {
if (domain_nosub === "sueddeutsche.de") {
// https://media-cdn.sueddeutsche.de/image/sz.1.4449065/560x560?cropRatios=0:0-BiGa-www&cropRatios=3:2&cropRatios=2:3&method=resize&v=1558023698
// https://media-cdn.sueddeutsche.de/image/sz.1.4449065
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/949
// https://www.sueddeutsche.de/image/sz.1.5437983/2000x840?v=1634059405000&format=webp
// https://www.sueddeutsche.de/image/sz.1.5437983
// https://www.sueddeutsche.de/image/sz.1.5434756/1408x792?v=1633716337&format=webp
// https://www.sueddeutsche.de/image/sz.1.5434756
return src.replace(/(\/image\/+sz\.[0-9]+\.[0-9]+)\/+.*$/, "$1");
}
if (domain_nowww === "swensonhomesolutions.com"
Expand Down

0 comments on commit 1902b18

Please sign in to comment.