Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Jan 26, 2024
1 parent 9768f6c commit e0f48dc
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 6 deletions.
40 changes: 37 additions & 3 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31454,6 +31454,14 @@ var $$IMU_EXPORT$$;
return urls;
}

if (domain_nosub === "sqspcdn.com") {
// https://static1.1.sqspcdn.com/static/p/1143251/17399689/1359875559457/img_2816.jpg?asThumbnail=true&token=s3nIU6nvLYSGVP5b0zHkHk4Xntc%3D
// https://static1.1.sqspcdn.com/static/p/1143251/17399689/1359875559457/img_2816.jpg?token=s3nIU6nvLYSGVP5b0zHkHk4Xntc%3D
if (/\/static\/+p\/+[0-9]+\/+[0-9]+\/+[0-9]+\//.test(src)) {
return keep_queries(src, ["token"]);
}
}

if (domain === "static.onecms.io") {
// thanks to remlap on discord for reporting
// https://static.onecms.io/wp-content/uploads/sites/14/2020/07/31/InStyle-September-Zendaya-2-2000.jpg
Expand Down Expand Up @@ -32627,6 +32635,8 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://eh96lnrmau.user-space.cdn.idcfcloud.net/thumbnail/book/1897.jpg?auto=webp&width=750
domain === "eh96lnrmau.user-space.cdn.idcfcloud.net" ||
// https://www.lego.com/cdn/cs/set/assets/blt94d6ae80cbfd9f54/01_Tall_10307_Desktop.jpg?fit=crop&format=webply&quality=80&width=1600&height=700&dpr=1
(domain_nowww === "lego.com" && /\/cdn\/+.*\/assets\//.test(src)) ||
// 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 @@ -107561,7 +107571,18 @@ var $$IMU_EXPORT$$;
};
}

if (domain === "img-baila.hpplus.jp"// ||
if (domain === "img-baila.hpplus.jp" ||
// thanks to fireattack on discord:
// https://img-maquia.hpplus.jp/common/large/image/bf/bfe6887f-3f9f-4dd6-aa6c-acebf605f285-3000x2000.jpg
// https://img-maquia.hpplus.jp/image/bf/bfe6887f-3f9f-4dd6-aa6c-acebf605f285-3000x2000.jpg
// https://cdn-maquia.hpplus.jp/image/bf/bfe6887f-3f9f-4dd6-aa6c-acebf605f285-3000x2000.jpg
// https://img-maquia.hpplus.jp/o/common/large/image/28/28979411-2852-4a75-bedd-1bc58afe5638-1200x1571.jpg
// https://cdn-maquia.hpplus.jp/image/28/28979411-2852-4a75-bedd-1bc58afe5638-1200x1571.jpg
// https://img-maquia.hpplus.jp/quality/image/fd/fd1e66fe-ada0-4ea8-94b1-d2407423239e.jpg
// https://cdn-maquia.hpplus.jp/image/fd/fd1e66fe-ada0-4ea8-94b1-d2407423239e.jpg
// https://img-maquia.hpplus.jp/common/large/image/b5/b5964929-097f-49a9-93a5-e1b6dcd5d3dd-772.89787946429x772.89787946429.jpg
// https://cdn-maquia.hpplus.jp/image/b5/b5964929-097f-49a9-93a5-e1b6dcd5d3dd-772.89787946429x772.89787946429.jpg
domain === "img-maquia.hpplus.jp"// ||
//domain === "cdn-baila.hpplus.jp" ||
// https://s3.ap-northeast-1.amazonaws.com/cdn-baila.hpplus.jp/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg
//amazon_container === "cdn-baila.hpplus.jp"
Expand All @@ -107570,7 +107591,11 @@ var $$IMU_EXPORT$$;
// https://img-baila.hpplus.jp/s/small/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg -- 173x260
// https://img-baila.hpplus.jp/common/large/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg -- 750x1125
// https://img-baila.hpplus.jp/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg -- 1308x1961
return src.replace(/(:\/\/[^/]+\/+).*?\/+(image\/+[0-9a-f]{2}\/+)/, "$1$2");
// https://cdn-baila.hpplus.jp/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg -- 1580x2369
return src
.replace(/:\/\/img-([^/]+\/+image\/.*)$/, "://cdn-$1")
.replace(/(:\/\/[^/]+\/+).*?\/+(image\/+[0-9a-f]{2}\/+)/, "$1$2");
//return src.replace(/:\/\/img-([^/]+)\/+.*?(\/image\/+[0-9a-f]{2}\/+[-0-9a-f]{10,}(?:-[0-9]+x[0-9]+)?)\.[a-z]+)(?:[?#].*)?$/, "://cdn-$1$2");
}

if (domain === "gather.fandalism.com" ||
Expand Down Expand Up @@ -111395,7 +111420,10 @@ var $$IMU_EXPORT$$;
// https://breakdownservices.s3.amazonaws.com/media/photos/20225/1933769/small/BC728FF1-1B7E-41B0-A80AE5B0734A1AC4.jpg
// https://breakdownservices.s3.amazonaws.com/media/photos/20225/1933769/BC728FF1-1B7E-41B0-A80AE5B0734A1AC4.jpg
// https://breakdownservices.s3.amazonaws.com/media/photos/20225/1933769/print/BC728FF1-1B7E-41B0-A80AE5B0734A1AC4.jpg
return src.replace(/(\/media\/+photos\/+[0-9]+\/+[0-9]+\/+)(?:small\/+)?([-0-9A-F]{10,}\.)/, "$1print/$2");
return {
url: src.replace(/(\/media\/+photos\/+[0-9]+\/+[0-9]+\/+)(?:small\/+)?([-0-9A-F]{10,}\.)/, "$1print/$2"),
head_wrong_contenttype: true
};
}

if (domain === "cdn.youpic.com") {
Expand Down Expand Up @@ -111474,6 +111502,12 @@ var $$IMU_EXPORT$$;
if (newsrc) return newsrc;
}

if (domain === "img.thecollector.io") {
// https://img.thecollector.io/f/122649/2000x1500/0fae5dbef2/71799.png/m/fit-in/400x400/filters:fill(ffffff),quality(50)
// https://img.thecollector.io/f/122649/2000x1500/0fae5dbef2/71799.png
return src.replace(/(\/f\/+[0-9]+\/+.*?\.[a-z]+)\/+m\/.*/, "$1");
}




Expand Down
38 changes: 35 additions & 3 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -28647,6 +28647,13 @@ var $$IMU_EXPORT$$;
urls.push(add_queries(newsrc, queries_1));
return urls;
}
if (domain_nosub === "sqspcdn.com") {
// https://static1.1.sqspcdn.com/static/p/1143251/17399689/1359875559457/img_2816.jpg?asThumbnail=true&token=s3nIU6nvLYSGVP5b0zHkHk4Xntc%3D
// https://static1.1.sqspcdn.com/static/p/1143251/17399689/1359875559457/img_2816.jpg?token=s3nIU6nvLYSGVP5b0zHkHk4Xntc%3D
if (/\/static\/+p\/+[0-9]+\/+[0-9]+\/+[0-9]+\//.test(src)) {
return keep_queries(src, ["token"]);
}
}
if (domain === "static.onecms.io") {
// thanks to remlap on discord for reporting
// https://static.onecms.io/wp-content/uploads/sites/14/2020/07/31/InStyle-September-Zendaya-2-2000.jpg
Expand Down Expand Up @@ -29815,6 +29822,8 @@ var $$IMU_EXPORT$$;
// thanks to anonymous for reporting:
// https://eh96lnrmau.user-space.cdn.idcfcloud.net/thumbnail/book/1897.jpg?auto=webp&width=750
domain === "eh96lnrmau.user-space.cdn.idcfcloud.net" ||
// https://www.lego.com/cdn/cs/set/assets/blt94d6ae80cbfd9f54/01_Tall_10307_Desktop.jpg?fit=crop&format=webply&quality=80&width=1600&height=700&dpr=1
(domain_nowww === "lego.com" && /\/cdn\/+.*\/assets\//.test(src)) ||
// 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 @@ -96547,7 +96556,18 @@ var $$IMU_EXPORT$$;
head_wrong_contenttype: true
};
}
if (domain === "img-baila.hpplus.jp" // ||
if (domain === "img-baila.hpplus.jp" ||
// thanks to fireattack on discord:
// https://img-maquia.hpplus.jp/common/large/image/bf/bfe6887f-3f9f-4dd6-aa6c-acebf605f285-3000x2000.jpg
// https://img-maquia.hpplus.jp/image/bf/bfe6887f-3f9f-4dd6-aa6c-acebf605f285-3000x2000.jpg
// https://cdn-maquia.hpplus.jp/image/bf/bfe6887f-3f9f-4dd6-aa6c-acebf605f285-3000x2000.jpg
// https://img-maquia.hpplus.jp/o/common/large/image/28/28979411-2852-4a75-bedd-1bc58afe5638-1200x1571.jpg
// https://cdn-maquia.hpplus.jp/image/28/28979411-2852-4a75-bedd-1bc58afe5638-1200x1571.jpg
// https://img-maquia.hpplus.jp/quality/image/fd/fd1e66fe-ada0-4ea8-94b1-d2407423239e.jpg
// https://cdn-maquia.hpplus.jp/image/fd/fd1e66fe-ada0-4ea8-94b1-d2407423239e.jpg
// https://img-maquia.hpplus.jp/common/large/image/b5/b5964929-097f-49a9-93a5-e1b6dcd5d3dd-772.89787946429x772.89787946429.jpg
// https://cdn-maquia.hpplus.jp/image/b5/b5964929-097f-49a9-93a5-e1b6dcd5d3dd-772.89787946429x772.89787946429.jpg
domain === "img-maquia.hpplus.jp" // ||
//domain === "cdn-baila.hpplus.jp" ||
// https://s3.ap-northeast-1.amazonaws.com/cdn-baila.hpplus.jp/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg
//amazon_container === "cdn-baila.hpplus.jp"
Expand All @@ -96556,7 +96576,11 @@ var $$IMU_EXPORT$$;
// https://img-baila.hpplus.jp/s/small/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg -- 173x260
// https://img-baila.hpplus.jp/common/large/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg -- 750x1125
// https://img-baila.hpplus.jp/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg -- 1308x1961
return src.replace(/(:\/\/[^/]+\/+).*?\/+(image\/+[0-9a-f]{2}\/+)/, "$1$2");
// https://cdn-baila.hpplus.jp/image/a0/a0bb2278-f824-4b89-9b62-fb27a0874bb6.jpg -- 1580x2369
return src
.replace(/:\/\/img-([^/]+\/+image\/.*)$/, "://cdn-$1")
.replace(/(:\/\/[^/]+\/+).*?\/+(image\/+[0-9a-f]{2}\/+)/, "$1$2");
//return src.replace(/:\/\/img-([^/]+)\/+.*?(\/image\/+[0-9a-f]{2}\/+[-0-9a-f]{10,}(?:-[0-9]+x[0-9]+)?)\.[a-z]+)(?:[?#].*)?$/, "://cdn-$1$2");
}
if (domain === "gather.fandalism.com" ||
// https://s3.amazonaws.com/gather.fandalism.com/800x800-2487035--D21FE795-9EC1-43D4-B8D423AB34D241A2--0--4287084--cover4.jpg
Expand Down Expand Up @@ -99978,7 +100002,10 @@ var $$IMU_EXPORT$$;
// https://breakdownservices.s3.amazonaws.com/media/photos/20225/1933769/small/BC728FF1-1B7E-41B0-A80AE5B0734A1AC4.jpg
// https://breakdownservices.s3.amazonaws.com/media/photos/20225/1933769/BC728FF1-1B7E-41B0-A80AE5B0734A1AC4.jpg
// https://breakdownservices.s3.amazonaws.com/media/photos/20225/1933769/print/BC728FF1-1B7E-41B0-A80AE5B0734A1AC4.jpg
return src.replace(/(\/media\/+photos\/+[0-9]+\/+[0-9]+\/+)(?:small\/+)?([-0-9A-F]{10,}\.)/, "$1print/$2");
return {
url: src.replace(/(\/media\/+photos\/+[0-9]+\/+[0-9]+\/+)(?:small\/+)?([-0-9A-F]{10,}\.)/, "$1print/$2"),
head_wrong_contenttype: true
};
}
if (domain === "cdn.youpic.com") {
// thanks to anonymous for reporting:
Expand Down Expand Up @@ -100048,6 +100075,11 @@ var $$IMU_EXPORT$$;
if (newsrc)
return newsrc;
}
if (domain === "img.thecollector.io") {
// https://img.thecollector.io/f/122649/2000x1500/0fae5dbef2/71799.png/m/fit-in/400x400/filters:fill(ffffff),quality(50)
// https://img.thecollector.io/f/122649/2000x1500/0fae5dbef2/71799.png
return src.replace(/(\/f\/+[0-9]+\/+.*?\.[a-z]+)\/+m\/.*/, "$1");
}
// -- 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 e0f48dc

Please sign in to comment.