Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 8, 2024
1 parent 7d72ec6 commit b5a0777
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
28 changes: 27 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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\//) ||
Expand Down Expand Up @@ -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)) {
Expand Down Expand Up @@ -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/");
}




Expand Down
26 changes: 25 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\//) ||
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b5a0777

Please sign in to comment.