From cd3d4ac61ce8cde16370e78efe1d42d788a0698f Mon Sep 17 00:00:00 2001 From: qsniyg Date: Mon, 5 Aug 2024 23:33:39 +0000 Subject: [PATCH] More websites/rules (#1344) --- src/userscript.ts | 13 ++++++++++++- userscript.user.js | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/userscript.ts b/src/userscript.ts index ff0f6c3e..a2c22849 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -36376,7 +36376,11 @@ var $$IMU_EXPORT$$; return add_http(newsrc); } - if (domain_nosub === "alicdn.com") { + if (domain_nosub === "alicdn.com" || + // thanks to anonymous for reporting: + // https://ae-pic-a1.aliexpress-media.com/kf/S24e857e1e554444bb8ac7fc2dfd6f5bc7.jpg_80x80.jpg_.webp + // https://ae-pic-a1.aliexpress-media.com/kf/S24e857e1e554444bb8ac7fc2dfd6f5bc7.jpg + domain_nosub === "aliexpress-media.com") { // https://ae01.alicdn.com/kf/HTB1AMo8a4uaVKJjSZFjq6AjmpXai/BINYEAE-new-CD-seal-State-of-Grace-Paul-Schwartz-Lisbeth-Scott-CD-disc-free-shipping.jpg_640x640.jpg // https://ae01.alicdn.com/kf/HTB1AMo8a4uaVKJjSZFjq6AjmpXai/BINYEAE-new-CD-seal-State-of-Grace-Paul-Schwartz-Lisbeth-Scott-CD-disc-free-shipping.jpg // https://ae01.alicdn.com/kf/HT1N7knFG0dXXagOFbXQ/220255879/HT1N7knFG0dXXagOFbXQ.jpg?size=209686&height=1472&width=970&hash=b068627a285860c5226596bada694403 @@ -79261,6 +79265,10 @@ var $$IMU_EXPORT$$; // https://www.thesymbol.ru/upload/verstka_io/M396123/9796c1cfddb9c8cdfd579e48f739345f.jpg domain_nowww === "thesymbol.ru" || // thanks to anonymous for reporting: + // https://www.pravilamag.ru/upload/img_cache/165/1655bc78b8a572c9d4c58b154f1ea5b9_ce_2000x2000x296x0_cropped_385x385.webp + // https://www.pravilamag.ru/upload/img_cache/165/1655bc78b8a572c9d4c58b154f1ea5b9_ce_2000x2000x296x0.jpg + domain_nowww === "pravilamag.ru" || + // thanks to anonymous for reporting: // https://images11.esquire.ru/upload/img_cache/600/6006d2e3c1b2a4e455e26b857aa2c92d_cropped_1332x1666.jpg //(domain_nosub === "esquire.ru" && /^images[0-9]*\./.test(domain)) || // thanks to roi: @@ -86789,9 +86797,12 @@ var $$IMU_EXPORT$$; // https://image.aladin.co.kr/product/33894/48/cover200/k132930727_1.jpg // https://image.aladin.co.kr/product/33894/48/cover500/k132930727_1.jpg // https://image.aladin.co.kr/product/33894/48/letslook/k132930727_fl.jpg -- 2114x2433 + // https://image.aladin.co.kr/product/28728/13/letslook/8934967323_wbl.jpg?MW=750& + // https://image.aladin.co.kr/product/28728/13/letslook/8934967323_wbl.jpg // other: // https://image.aladin.co.kr/product/17719/20/cover500/4800292263_1.jpg -- 1500x2112 return src + .replace(/(\/product\/+[0-9]+\/+[0-9]+\/+.*?)(?:[?#].*)?$/, "$1") .replace(/(\/product\/+[0-9]+\/+[0-9]+\/+)cover500\/+(k[0-9]+_)1\./, "$1letslook/$2fl.") .replace(/(\/product\/+[0-9]+\/+[0-9]+\/+)cover(?:sum|1[50]0|200)\/+/, "$1cover500/"); } diff --git a/userscript.user.js b/userscript.user.js index e1e4a366..95ab0edc 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -33325,7 +33325,11 @@ var $$IMU_EXPORT$$; if (newsrc !== src) return add_http(newsrc); } - if (domain_nosub === "alicdn.com") { + if (domain_nosub === "alicdn.com" || + // thanks to anonymous for reporting: + // https://ae-pic-a1.aliexpress-media.com/kf/S24e857e1e554444bb8ac7fc2dfd6f5bc7.jpg_80x80.jpg_.webp + // https://ae-pic-a1.aliexpress-media.com/kf/S24e857e1e554444bb8ac7fc2dfd6f5bc7.jpg + domain_nosub === "aliexpress-media.com") { // https://ae01.alicdn.com/kf/HTB1AMo8a4uaVKJjSZFjq6AjmpXai/BINYEAE-new-CD-seal-State-of-Grace-Paul-Schwartz-Lisbeth-Scott-CD-disc-free-shipping.jpg_640x640.jpg // https://ae01.alicdn.com/kf/HTB1AMo8a4uaVKJjSZFjq6AjmpXai/BINYEAE-new-CD-seal-State-of-Grace-Paul-Schwartz-Lisbeth-Scott-CD-disc-free-shipping.jpg // https://ae01.alicdn.com/kf/HT1N7knFG0dXXagOFbXQ/220255879/HT1N7knFG0dXXagOFbXQ.jpg?size=209686&height=1472&width=970&hash=b068627a285860c5226596bada694403 @@ -71591,6 +71595,10 @@ var $$IMU_EXPORT$$; // https://www.thesymbol.ru/upload/verstka_io/M396123/9796c1cfddb9c8cdfd579e48f739345f.jpg domain_nowww === "thesymbol.ru" || // thanks to anonymous for reporting: + // https://www.pravilamag.ru/upload/img_cache/165/1655bc78b8a572c9d4c58b154f1ea5b9_ce_2000x2000x296x0_cropped_385x385.webp + // https://www.pravilamag.ru/upload/img_cache/165/1655bc78b8a572c9d4c58b154f1ea5b9_ce_2000x2000x296x0.jpg + domain_nowww === "pravilamag.ru" || + // thanks to anonymous for reporting: // https://images11.esquire.ru/upload/img_cache/600/6006d2e3c1b2a4e455e26b857aa2c92d_cropped_1332x1666.jpg //(domain_nosub === "esquire.ru" && /^images[0-9]*\./.test(domain)) || // thanks to roi: @@ -78196,9 +78204,12 @@ var $$IMU_EXPORT$$; // https://image.aladin.co.kr/product/33894/48/cover200/k132930727_1.jpg // https://image.aladin.co.kr/product/33894/48/cover500/k132930727_1.jpg // https://image.aladin.co.kr/product/33894/48/letslook/k132930727_fl.jpg -- 2114x2433 + // https://image.aladin.co.kr/product/28728/13/letslook/8934967323_wbl.jpg?MW=750& + // https://image.aladin.co.kr/product/28728/13/letslook/8934967323_wbl.jpg // other: // https://image.aladin.co.kr/product/17719/20/cover500/4800292263_1.jpg -- 1500x2112 return src + .replace(/(\/product\/+[0-9]+\/+[0-9]+\/+.*?)(?:[?#].*)?$/, "$1") .replace(/(\/product\/+[0-9]+\/+[0-9]+\/+)cover500\/+(k[0-9]+_)1\./, "$1letslook/$2fl.") .replace(/(\/product\/+[0-9]+\/+[0-9]+\/+)cover(?:sum|1[50]0|200)\/+/, "$1cover500/"); }