Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Sep 7, 2023
1 parent d9b2d33 commit a65b52f
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 4 deletions.
32 changes: 30 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48029,8 +48029,11 @@ var $$IMU_EXPORT$$;
return src.replace("/style_screenshot_thumbnails/", "/style_screenshots/");
}

if (domain_nosub === "narvii.com" &&
domain.match(/^[a-z]+[0-9]*\./)) {
if ((domain_nosub === "narvii.com" ||
// thanks to anonymous for reporting:
// https://pm1.aminoapps.com/6445/7777674d1fdf9a3f8c6396a3728e2cf0f895f916_00.jpg
// https://pm1.aminoapps.com/6445/7777674d1fdf9a3f8c6396a3728e2cf0f895f916_hq.jpg
domain_nosub === "aminoapps.com") && /^[a-z]+[0-9]*\./.test(domain)) {
// https://pm1.narvii.com/6144/3af419d28deec398f490c7b1e0106d41165f84e0_128.jpg
// https://pm1.narvii.com/6144/3af419d28deec398f490c7b1e0106d41165f84e0_hq.jpg
// https://pm1.narvii.com/6795/59948b2d6d93878fcfbcbf091d9edfa9399b93c4v2_00.jpg
Expand Down Expand Up @@ -75798,6 +75801,9 @@ var $$IMU_EXPORT$$;
// https://www.economist.com/cdn-cgi/image/width=1424,quality=80,format=auto/content-assets/images/20230805_LDD001.jpg
// https://www.economist.com/content-assets/images/20230805_LDD001.jpg -- forces download
domain_nowww === "economist.com" ||
// https://img.mylibrary.digital/cdn-cgi/image/fit=cover,format=auto,width=180,quality=75/https://img1.od-cdn.com/ImageType-200/0292-1/%7B7001398A-14E9-47B7-806B-82FF0459898E%7DImg200.jpg
// https://img1.od-cdn.com/ImageType-200/0292-1/%7B7001398A-14E9-47B7-806B-82FF0459898E%7DImg200.jpg
domain === "img.mylibrary.digital" ||
// https://images.psmcdn.net/cdn-cgi/image/width=205,quality=100//tsv4/model/profiles/luna_daniels.jpg
// https://images.psmcdn.net/tsv4/model/profiles/luna_daniels.jpg
domain === "images.psmcdn.net") {
Expand Down Expand Up @@ -106963,6 +106969,28 @@ var $$IMU_EXPORT$$;
return src.replace(/\/artwork\/+(?:small|medium)\/+/, "/artwork/large/");
}

if (domain === "ic.od-cdn.com") {
// thanks to anonymous for reporting:
// https://ic.od-cdn.com/resize?type=auto&url=%2FImageType-100%2F5835-1%2F%257BE3756F7C-77E4-4746-BD83-01F25FAC4B35%257DImg100.jpg&stripmeta=true&width=220
// https://img1.od-cdn.com/ImageType-100/5835-1/%7BE3756F7C-77E4-4746-BD83-01F25FAC4B35%7DImg100.jpg
match = src.match(/\/resize\?(?:.*&)?url=([^&]+)(?:[&#].*)?$/);
if (match) {
return urljoin("https://img1.od-cdn.com/", decodeURIComponent(match[1]), true);
}
}

if (domain_nosub === "od-cdn.com" && /^img[0-9]*\./.test(domain)) {
// https://img1.od-cdn.com/ImageType-150/0211-1/%7BF88564FC-3820-442F-8558-BC1893C13208%7DIMG150.JPG
// https://img1.od-cdn.com/ImageType-100/0211-1/%7BF88564FC-3820-442F-8558-BC1893C13208%7DIMG100.JPG -- 510x680
// https://img1.od-cdn.com/ImageType-200/0292-1/%7B7001398A-14E9-47B7-806B-82FF0459898E%7DImg200.jpg
// https://img1.od-cdn.com/ImageType-100/0292-1/%7B7001398A-14E9-47B7-806B-82FF0459898E%7DIMG100.jpg -- 510x680
// https://img1.od-cdn.com/ImageType-400/2849-1/%7BE7257F4B-9156-4B84-BA6B-EF34AFF517B6%7DIMG400.JPG -- 300x400
// https://img1.od-cdn.com/ImageType-100/2849-1/%7BE7257F4B-9156-4B84-BA6B-EF34AFF517B6%7DIMG100.JPG -- 510x680
// other:
// https://img1.od-cdn.com/ImageType-100/2814-1/%7B468CB5A9-F2B5-453C-B718-9FF4E4B9F9B1%7DImg100.jpg -- 2480x3508
return src.replace(/\/ImageType-(?:150|[24]00)(\/.*)IMG(?:150|[24]00)\./i, "/ImageType-100$1IMG100.");
}




Expand Down
30 changes: 28 additions & 2 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -43803,8 +43803,11 @@ var $$IMU_EXPORT$$;
// https://userstyles.org/style_screenshots/139772_after.jpeg
return src.replace("/style_screenshot_thumbnails/", "/style_screenshots/");
}
if (domain_nosub === "narvii.com" &&
domain.match(/^[a-z]+[0-9]*\./)) {
if ((domain_nosub === "narvii.com" ||
// thanks to anonymous for reporting:
// https://pm1.aminoapps.com/6445/7777674d1fdf9a3f8c6396a3728e2cf0f895f916_00.jpg
// https://pm1.aminoapps.com/6445/7777674d1fdf9a3f8c6396a3728e2cf0f895f916_hq.jpg
domain_nosub === "aminoapps.com") && /^[a-z]+[0-9]*\./.test(domain)) {
// https://pm1.narvii.com/6144/3af419d28deec398f490c7b1e0106d41165f84e0_128.jpg
// https://pm1.narvii.com/6144/3af419d28deec398f490c7b1e0106d41165f84e0_hq.jpg
// https://pm1.narvii.com/6795/59948b2d6d93878fcfbcbf091d9edfa9399b93c4v2_00.jpg
Expand Down Expand Up @@ -68392,6 +68395,9 @@ var $$IMU_EXPORT$$;
// https://www.economist.com/cdn-cgi/image/width=1424,quality=80,format=auto/content-assets/images/20230805_LDD001.jpg
// https://www.economist.com/content-assets/images/20230805_LDD001.jpg -- forces download
domain_nowww === "economist.com" ||
// https://img.mylibrary.digital/cdn-cgi/image/fit=cover,format=auto,width=180,quality=75/https://img1.od-cdn.com/ImageType-200/0292-1/%7B7001398A-14E9-47B7-806B-82FF0459898E%7DImg200.jpg
// https://img1.od-cdn.com/ImageType-200/0292-1/%7B7001398A-14E9-47B7-806B-82FF0459898E%7DImg200.jpg
domain === "img.mylibrary.digital" ||
// https://images.psmcdn.net/cdn-cgi/image/width=205,quality=100//tsv4/model/profiles/luna_daniels.jpg
// https://images.psmcdn.net/tsv4/model/profiles/luna_daniels.jpg
domain === "images.psmcdn.net") {
Expand Down Expand Up @@ -95928,6 +95934,26 @@ var $$IMU_EXPORT$$;
// https://www.normanrecords.com/artwork/large/122/199122-marja-ahti-tender-membranes.jpg
return src.replace(/\/artwork\/+(?:small|medium)\/+/, "/artwork/large/");
}
if (domain === "ic.od-cdn.com") {
// thanks to anonymous for reporting:
// https://ic.od-cdn.com/resize?type=auto&url=%2FImageType-100%2F5835-1%2F%257BE3756F7C-77E4-4746-BD83-01F25FAC4B35%257DImg100.jpg&stripmeta=true&width=220
// https://img1.od-cdn.com/ImageType-100/5835-1/%7BE3756F7C-77E4-4746-BD83-01F25FAC4B35%7DImg100.jpg
match = src.match(/\/resize\?(?:.*&)?url=([^&]+)(?:[&#].*)?$/);
if (match) {
return urljoin("https://img1.od-cdn.com/", decodeURIComponent(match[1]), true);
}
}
if (domain_nosub === "od-cdn.com" && /^img[0-9]*\./.test(domain)) {
// https://img1.od-cdn.com/ImageType-150/0211-1/%7BF88564FC-3820-442F-8558-BC1893C13208%7DIMG150.JPG
// https://img1.od-cdn.com/ImageType-100/0211-1/%7BF88564FC-3820-442F-8558-BC1893C13208%7DIMG100.JPG -- 510x680
// https://img1.od-cdn.com/ImageType-200/0292-1/%7B7001398A-14E9-47B7-806B-82FF0459898E%7DImg200.jpg
// https://img1.od-cdn.com/ImageType-100/0292-1/%7B7001398A-14E9-47B7-806B-82FF0459898E%7DIMG100.jpg -- 510x680
// https://img1.od-cdn.com/ImageType-400/2849-1/%7BE7257F4B-9156-4B84-BA6B-EF34AFF517B6%7DIMG400.JPG -- 300x400
// https://img1.od-cdn.com/ImageType-100/2849-1/%7BE7257F4B-9156-4B84-BA6B-EF34AFF517B6%7DIMG100.JPG -- 510x680
// other:
// https://img1.od-cdn.com/ImageType-100/2814-1/%7B468CB5A9-F2B5-453C-B718-9FF4E4B9F9B1%7DImg100.jpg -- 2480x3508
return src.replace(/\/ImageType-(?:150|[24]00)(\/.*)IMG(?:150|[24]00)\./i, "/ImageType-100$1IMG100.");
}
// -- 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 a65b52f

Please sign in to comment.