Skip to content

Commit

Permalink
More websites/rules (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Aug 5, 2024
1 parent 097bfab commit cd3d4ac
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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/");
}
Expand Down
13 changes: 12 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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/");
}
Expand Down

0 comments on commit cd3d4ac

Please sign in to comment.