From b5a077793b8731f3d2d497e17e94c7ad2b21f2ea Mon Sep 17 00:00:00 2001 From: qsniyg Date: Thu, 8 Feb 2024 09:08:12 +0000 Subject: [PATCH] More websites/rules --- src/userscript.ts | 28 +++++++++++++++++++++++++++- userscript.user.js | 26 +++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/src/userscript.ts b/src/userscript.ts index 0c56b325..6abee1ce 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -32679,6 +32679,9 @@ var $$IMU_EXPORT$$; // https://img.br.de/5d72b187-bd87-4b00-b972-6e2b2b92922d.jpeg?q=80&rect=0%2C125%2C2880%2C1619&w=2000 // https://img.br.de/64705972-8ec2-4b41-96c6-7a36cecbe0f5.jpeg?q=80&rect=0%2C385%2C2644%2C1488&w=2000 domain === "img.br.de" || + // thanks to anonymous for reporting: + // https://images.prod.hjholdings.tv/d3urerHm/uploads/migration/1be48297-bb1c-4925-8c6a-1df18751d389.png?w=331&h=447&p=t + domain === "images.prod.hjholdings.tv" || // 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\//) || @@ -75988,10 +75991,22 @@ var $$IMU_EXPORT$$; "/$1"); } + if (domain_nowww === "overclockers.ru") { + // thanks to anonymous for reporting: + // https://overclockers.ru/st/r/100/-/images/lab/2015/07/25/1/101.jpg + // https://st.overclockers.ru/r/100/-/images/lab/2015/07/25/1/101.jpg + return src.replace(/:\/\/[^/]+\/+st\/+(.*)$/, "://st." + domain_nosub + "/$1"); + } + if (domain === "st.overclockers.ru") { // https://st.overclockers.ru/c/350/300//images/preview/gOYpTW9P4Cko6erw.jpg // https://st.overclockers.ru/images/preview/gOYpTW9P4Cko6erw.jpg - return src.replace(/\/c\/+[0-9]+\/+[0-9]+\/+images\//, "/images/"); + // https://st.overclockers.ru/r/100/-/images/lab/2015/07/25/1/101.jpg + // https://st.overclockers.ru/images/lab/2015/07/25/1/101.jpg + // https://st.overclockers.ru/images/lab/2015/07/25/1/101_big.jpg + return src + .replace(/(:\/\/[^/]+\/+images\/+lab\/+[0-9]{4}\/+[0-9]{2}\/+[0-9]{2}\/+[0-9]+\/+[0-9]+)\./, "$1_big.") + .replace(/\/(?:c\/+[0-9]+\/+[0-9]+|r\/+[-0-9]+\/+[-0-9]+)\/+images\//, "/images/"); } if (domain_nosub === "kpcdn.net" && /^s[0-9]*\.stc\.[a-z]+\./.test(domain)) { @@ -112048,6 +112063,17 @@ var $$IMU_EXPORT$$; return src.replace(/\/b[wh]_[0-9]+\/+([^/]+)(?:[?#].*)?$/, "/$1"); } + if (domain_nowww === "wallpapers.com") { + // thanks to anonymous for reporting: + // https://wallpapers.com/images/thumbnail/aesthetic-simple-bathroom-interior-design-kbvt8bek9oihslv6.webp + // https://wallpapers.com/images/high/aesthetic-simple-bathroom-interior-design-kbvt8bek9oihslv6.webp + // https://wallpapers.com/images/hd/aesthetic-simple-bathroom-interior-design-kbvt8bek9oihslv6.webp -- 1298x1920 + // https://wallpapers.com/images/hd4/aesthetic-simple-bathroom-interior-design-kbvt8bek9oihslv6.jpg -- 3309x4896 + return src + .replace(/(\/images\/+hd4\/+[^/]+)\.webp(?:[?#].*)?$/, "$1.jpg") + .replace(/(\/images\/+)(?:thumb(?:nail)?|high|hd)\/+/, "$1hd4/"); + } + diff --git a/userscript.user.js b/userscript.user.js index dce30241..62ef623b 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -29865,6 +29865,9 @@ var $$IMU_EXPORT$$; // https://img.br.de/5d72b187-bd87-4b00-b972-6e2b2b92922d.jpeg?q=80&rect=0%2C125%2C2880%2C1619&w=2000 // https://img.br.de/64705972-8ec2-4b41-96c6-7a36cecbe0f5.jpeg?q=80&rect=0%2C385%2C2644%2C1488&w=2000 domain === "img.br.de" || + // thanks to anonymous for reporting: + // https://images.prod.hjholdings.tv/d3urerHm/uploads/migration/1be48297-bb1c-4925-8c6a-1df18751d389.png?w=331&h=447&p=t + domain === "images.prod.hjholdings.tv" || // 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\//) || @@ -68665,10 +68668,21 @@ var $$IMU_EXPORT$$; // https://mix.tn.kz/userdata/news/2017/news_330445/photo_231398.jpg return src.replace(/\/thumb_[a-z]+\/+(photo_[0-9]+\.[^/.]*)(?:[?#].*)?$/, "/$1"); } + if (domain_nowww === "overclockers.ru") { + // thanks to anonymous for reporting: + // https://overclockers.ru/st/r/100/-/images/lab/2015/07/25/1/101.jpg + // https://st.overclockers.ru/r/100/-/images/lab/2015/07/25/1/101.jpg + return src.replace(/:\/\/[^/]+\/+st\/+(.*)$/, "://st." + domain_nosub + "/$1"); + } if (domain === "st.overclockers.ru") { // https://st.overclockers.ru/c/350/300//images/preview/gOYpTW9P4Cko6erw.jpg // https://st.overclockers.ru/images/preview/gOYpTW9P4Cko6erw.jpg - return src.replace(/\/c\/+[0-9]+\/+[0-9]+\/+images\//, "/images/"); + // https://st.overclockers.ru/r/100/-/images/lab/2015/07/25/1/101.jpg + // https://st.overclockers.ru/images/lab/2015/07/25/1/101.jpg + // https://st.overclockers.ru/images/lab/2015/07/25/1/101_big.jpg + return src + .replace(/(:\/\/[^/]+\/+images\/+lab\/+[0-9]{4}\/+[0-9]{2}\/+[0-9]{2}\/+[0-9]+\/+[0-9]+)\./, "$1_big.") + .replace(/\/(?:c\/+[0-9]+\/+[0-9]+|r\/+[-0-9]+\/+[-0-9]+)\/+images\//, "/images/"); } if (domain_nosub === "kpcdn.net" && /^s[0-9]*\.stc\.[a-z]+\./.test(domain)) { // https://s9.stc.all.kpcdn.net/share/i/12/10613751/inx960x640.jpg @@ -100571,6 +100585,16 @@ var $$IMU_EXPORT$$; // https://d38fgd7fmrcuct.cloudfront.net/1_3xj7j5i5kaauoas0el6ye return src.replace(/\/b[wh]_[0-9]+\/+([^/]+)(?:[?#].*)?$/, "/$1"); } + if (domain_nowww === "wallpapers.com") { + // thanks to anonymous for reporting: + // https://wallpapers.com/images/thumbnail/aesthetic-simple-bathroom-interior-design-kbvt8bek9oihslv6.webp + // https://wallpapers.com/images/high/aesthetic-simple-bathroom-interior-design-kbvt8bek9oihslv6.webp + // https://wallpapers.com/images/hd/aesthetic-simple-bathroom-interior-design-kbvt8bek9oihslv6.webp -- 1298x1920 + // https://wallpapers.com/images/hd4/aesthetic-simple-bathroom-interior-design-kbvt8bek9oihslv6.jpg -- 3309x4896 + return src + .replace(/(\/images\/+hd4\/+[^/]+)\.webp(?:[?#].*)?$/, "$1.jpg") + .replace(/(\/images\/+)(?:thumb(?:nail)?|high|hd)\/+/, "$1hd4/"); + } // -- 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