Skip to content

Commit

Permalink
Support esquire.de (fixes #1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Sep 15, 2024
1 parent c9e60b8 commit c7baa88
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2024.9.0 (in-dev)

Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab for their contributions and reports for this release
Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab, sn3akyb3ar for their contributions and reports for this release

---

Expand Down
7 changes: 7 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116535,6 +116535,13 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/user\/+shop\/+)(?:related|big)\/+/, "$1orig/");
}

if (domain === "static.esquire.de") {
// thanks to sn3akyb3ar on github: https://github.com/qsniyg/maxurl/issues/1334
// https://static.esquire.de/3000x4286/focal_1500x1500:1501x1501/images/2022-07/au2357226-1730ff54f3c-1171671-2.jpg
// https://backend.esquire.de/sites/esquire.de/files/images/2022-07/au2357226-1730ff54f3c-1171671-2.jpg -- 4912x7360
return src.replace(/:\/\/[^/]+\/+[0-9]+x[0-9]+\/+.*?\/+images\//, "://backend.esquire.de/sites/esquire.de/files/images/");
}




Expand Down
6 changes: 6 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -104723,6 +104723,12 @@ var $$IMU_EXPORT$$;
// https://www.px-monkey.com/user/shop/orig/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864
return src.replace(/(\/user\/+shop\/+)(?:related|big)\/+/, "$1orig/");
}
if (domain === "static.esquire.de") {
// thanks to sn3akyb3ar on github: https://github.com/qsniyg/maxurl/issues/1334
// https://static.esquire.de/3000x4286/focal_1500x1500:1501x1501/images/2022-07/au2357226-1730ff54f3c-1171671-2.jpg
// https://backend.esquire.de/sites/esquire.de/files/images/2022-07/au2357226-1730ff54f3c-1171671-2.jpg -- 4912x7360
return src.replace(/:\/\/[^/]+\/+[0-9]+x[0-9]+\/+.*?\/+images\//, "://backend.esquire.de/sites/esquire.de/files/images/");
}
// -- general rules --
if (src.match(/\/ImageGen\.ashx\?/)) {
// http://www.lookalikes.info/umbraco/ImageGen.ashx?image=/media/97522/nick%20hewer%20-%20mark%20brown.jpeg&width=250&constrain=true
Expand Down

0 comments on commit c7baa88

Please sign in to comment.