Skip to content

Commit

Permalink
Support bilder.tragant.de (fixes #1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Sep 15, 2024
1 parent 15fdf35 commit 7b78733
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
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 for their contributions and reports for this release
Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma for their contributions and reports for this release

---

Expand Down
17 changes: 16 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34021,6 +34021,9 @@ var $$IMU_EXPORT$$;
// https://newscast.jp/attachments/UnM6oKBOKKWmF98aFEXg.jpg?w=700&h=500&q=100
// https://newscast.jp/attachments/UnM6oKBOKKWmF98aFEXg.jpg
(domain_nowww === "newscast.jp" && string_indexof(src, "/attachments/") >= 0) ||
// thanks to anonymous for reporting:
// https://img.trampt.com/products/000/033/448/Love_Thy_Neighbor-Brian_Hurst-Gicle_Digital_Print-trampt-33448o.jpg?tr=w-750,h-750,cm-pad_resize
domain === "img.trampt.com" ||
// http://us.jimmychoo.com/dw/image/v2/AAWE_PRD/on/demandware.static/-/Sites-jch-master-product-catalog/default/dw70b1ebd2/images/rollover/LIZ100MPY_120004_MODEL.jpg?sw=245&sh=245&sm=fit
// https://www.aritzia.com/on/demandware.static/-/Library-Sites-Aritzia_Shared/default/dw3a7fef87/seasonal/ss18/ss18-springsummercampaign/ss18-springsummercampaign-homepage/hptiles/tile-wilfred-lrg.jpg
src.match(/\/demandware\.static\//) ||
Expand Down Expand Up @@ -109515,7 +109518,9 @@ var $$IMU_EXPORT$$;
// thanks to vscum on github: https://github.com/qsniyg/maxurl/pull/1137
domain_nosub === "coomer.party" ||
// thanks to beeznutsonly on github: https://github.com/qsniyg/maxurl/issues/1276
domain_nosub === "coomer.su") {
domain_nosub === "coomer.su" ||
// thanks to anonymous for reporting:
domain_nosub === "nekohouse.su") {
// thanks to BrandonKMLee on github: https://github.com/qsniyg/maxurl/issues/1093
// https://kemono.party/thumbnail/data/30/34/3034877e08c6b13c03db53879464858ae4a4f8f2360c7755d16a241a2613e12c.png
// https://data65.kemono.party/data/30/34/3034877e08c6b13c03db53879464858ae4a4f8f2360c7755d16a241a2613e12c.png
Expand Down Expand Up @@ -116489,6 +116494,16 @@ var $$IMU_EXPORT$$;
return src.replace(/(:\/\/[^/]+\/+(?:data\/+[^/]+\/+)?)[0-9AUTO]+x[0-9AUTO]+\/+/, "$1");
}

if (domain === "bilder.tragant.de") {
// thanks to fyhtma on github: https://github.com/qsniyg/maxurl/issues/1362
// https://bilder.tragant.de/produkte/leiste/6185535ddfc404.16360188.jpg -- 50x38
// https://bilder.tragant.de/produkte/orig/6185535ddfc404.16360188.jpg -- 700x530
// https://bilder.tragant.de/produkte/hoch/6185535ddfc404.16360188.jpg -- 2000x1514
return src
.replace(/(\/produkte\/+)orig\/+/, "$1hoch/")
.replace(/(\/produkte\/+)leiste\/+/, "$1orig/");
}




Expand Down
16 changes: 15 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -31169,6 +31169,9 @@ var $$IMU_EXPORT$$;
// https://newscast.jp/attachments/UnM6oKBOKKWmF98aFEXg.jpg?w=700&h=500&q=100
// https://newscast.jp/attachments/UnM6oKBOKKWmF98aFEXg.jpg
(domain_nowww === "newscast.jp" && string_indexof(src, "/attachments/") >= 0) ||
// thanks to anonymous for reporting:
// https://img.trampt.com/products/000/033/448/Love_Thy_Neighbor-Brian_Hurst-Gicle_Digital_Print-trampt-33448o.jpg?tr=w-750,h-750,cm-pad_resize
domain === "img.trampt.com" ||
// http://us.jimmychoo.com/dw/image/v2/AAWE_PRD/on/demandware.static/-/Sites-jch-master-product-catalog/default/dw70b1ebd2/images/rollover/LIZ100MPY_120004_MODEL.jpg?sw=245&sh=245&sm=fit
// https://www.aritzia.com/on/demandware.static/-/Library-Sites-Aritzia_Shared/default/dw3a7fef87/seasonal/ss18/ss18-springsummercampaign/ss18-springsummercampaign-homepage/hptiles/tile-wilfred-lrg.jpg
src.match(/\/demandware\.static\//) ||
Expand Down Expand Up @@ -98452,7 +98455,9 @@ var $$IMU_EXPORT$$;
// thanks to vscum on github: https://github.com/qsniyg/maxurl/pull/1137
domain_nosub === "coomer.party" ||
// thanks to beeznutsonly on github: https://github.com/qsniyg/maxurl/issues/1276
domain_nosub === "coomer.su") {
domain_nosub === "coomer.su" ||
// thanks to anonymous for reporting:
domain_nosub === "nekohouse.su") {
// thanks to BrandonKMLee on github: https://github.com/qsniyg/maxurl/issues/1093
// https://kemono.party/thumbnail/data/30/34/3034877e08c6b13c03db53879464858ae4a4f8f2360c7755d16a241a2613e12c.png
// https://data65.kemono.party/data/30/34/3034877e08c6b13c03db53879464858ae4a4f8f2360c7755d16a241a2613e12c.png
Expand Down Expand Up @@ -104681,6 +104686,15 @@ var $$IMU_EXPORT$$;
// https://media-img.lucyinthesky.com/b0996b6c-0ac5-4021-9173-7a537dd1b516.jpg
return src.replace(/(:\/\/[^/]+\/+(?:data\/+[^/]+\/+)?)[0-9AUTO]+x[0-9AUTO]+\/+/, "$1");
}
if (domain === "bilder.tragant.de") {
// thanks to fyhtma on github: https://github.com/qsniyg/maxurl/issues/1362
// https://bilder.tragant.de/produkte/leiste/6185535ddfc404.16360188.jpg -- 50x38
// https://bilder.tragant.de/produkte/orig/6185535ddfc404.16360188.jpg -- 700x530
// https://bilder.tragant.de/produkte/hoch/6185535ddfc404.16360188.jpg -- 2000x1514
return src
.replace(/(\/produkte\/+)orig\/+/, "$1hoch/")
.replace(/(\/produkte\/+)leiste\/+/, "$1orig/");
}
// -- 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 7b78733

Please sign in to comment.