Skip to content

Commit

Permalink
Add more gray media domains (fixes #1370)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Oct 1, 2024
1 parent b849500 commit c03369b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Improvements:

* Various improvements/fixes to existing rules (including YouTube)

Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab, sn3akyb3ar, ValiumBear, fireattack, NeverForgotten for their contributions and reports for this release
Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab, sn3akyb3ar, ValiumBear, fireattack, NeverForgotten, liamengland1 for their contributions and reports for this release

---

Expand Down
18 changes: 18 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110835,6 +110835,16 @@ var $$IMU_EXPORT$$;
// https://www.shropshirestar.com/resizer/v2/ANHB4KU4BRDX3P4JJYZ66FCWM4.jpg?auth=14ad374e17db437d9a7b335e256dfd7619c5f68c106ad6d11e27e85a489e0296&width=1200&height=900
// https://cloudfront-us-east-1.images.arcpublishing.com/mna/ANHB4KU4BRDX3P4JJYZ66FCWM4.jpg
domain_nowww === "shropshirestar.com" ||
// thanks to liamengland1 on github: https://github.com/qsniyg/maxurl/issues/1370
// https://gray-wctv-prod.gtv-cdn.com/resizer/v2/QV5S634SSVDPLFDC7TJKQIQUHU.jfif?auth=cb16b69204edd60a484b3a0c753cde1f8f12fe5cf505d0bcc740f76e2069ef29&width=1200&height=800&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/QV5S634SSVDPLFDC7TJKQIQUHU.jfif
// https://gray-wdbj-prod.gtv-cdn.com/resizer/v2/IRGMGZ7VQNAWBH6PPN2G4ZTKAU.jpg?auth=4e91ac97e4bce4a88e2b6b7f0c58447faf270c570efc5ddffea6d7c90d3e62b8&width=1600&height=900&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/IRGMGZ7VQNAWBH6PPN2G4ZTKAU.jpg
// https://gray-wvir-prod.gtv-cdn.com/resizer/v2/UIAONGT3WVDQNMHDRYDSCJQCT4.jpeg?auth=bd8e6e45bdf0b0800ae321d2d916aca8c2e9909bdca44bc82c302246bc6db428&width=1300&height=975&smart=true -- upscaled?
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/UIAONGT3WVDQNMHDRYDSCJQCT4.jpeg
// https://gray-kvly-prod.gtv-cdn.com/resizer/v2/https%3A%2F%2Fcloudfront-us-east-1.images.arcpublishing.com%2Fgray%2FALWQDT5MIREGTGOVBMOKZYHJBY.jpg?auth=696f1c074052f5d043f46b46b3072587d5b47b7e8ee5356c6c91968a79843a53&width=980&smart=false
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/ALWQDT5MIREGTGOVBMOKZYHJBY.jpg
domain_nosub === "gtv-cdn.com" ||
// thanks to roi:
// https://www.theglobeandmail.com/resizer/v2/MIMBGW3UORBLZMMTL2GASZ75JE.JPG?auth=c570680e25c89027c795085ce398d06291485e026f2830e996db3e2d9a71d3d8&width=900&quality=80
// https://cloudfront-us-east-1.images.arcpublishing.com/tgam/MIMBGW3UORBLZMMTL2GASZ75JE.JPG
Expand All @@ -110856,10 +110866,18 @@ var $$IMU_EXPORT$$;
info = {folder: "prisa", loc: "eu-central-1"};
else if (domain_nowww === "shropshirestar.com")
info = {folder: "mna", loc: "us-east-1"};
else if (domain_nosub === "gtv-cdn.com")
info = {folder: "gray", loc: "us-east-1"};

newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+resizer\/+v2\/+([^?#/]+)(?:[?#].*)?$/, "https://cloudfront-" + info.loc + ".images.arcpublishing.com/" + info.folder + "/$1");
if (newsrc !== src)
return newsrc;

// https://gray-wvir-prod.gtv-cdn.com/resizer/-rzLIYFvpWLGCV9x_yiPNKQVS0Q=/arc-photo-gray/arc3-prod/public/HM5GPD4PQZHRZL2ANO3YXUXC6A.png
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/HM5GPD4PQZHRZL2ANO3YXUXC6A.png
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+resizer\/+.*?\/arc3-prod\/+public\/+([^?#/]+)(?:[?#].*)?$/, "https://cloudfront-" + info.loc + ".images.arcpublishing.com/" + info.folder + "/$1");
if (newsrc !== src)
return newsrc;
}

if (domain_nowww === "lqj.ch") {
Expand Down
17 changes: 17 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -99655,6 +99655,16 @@ var $$IMU_EXPORT$$;
// https://www.shropshirestar.com/resizer/v2/ANHB4KU4BRDX3P4JJYZ66FCWM4.jpg?auth=14ad374e17db437d9a7b335e256dfd7619c5f68c106ad6d11e27e85a489e0296&width=1200&height=900
// https://cloudfront-us-east-1.images.arcpublishing.com/mna/ANHB4KU4BRDX3P4JJYZ66FCWM4.jpg
domain_nowww === "shropshirestar.com" ||
// thanks to liamengland1 on github: https://github.com/qsniyg/maxurl/issues/1370
// https://gray-wctv-prod.gtv-cdn.com/resizer/v2/QV5S634SSVDPLFDC7TJKQIQUHU.jfif?auth=cb16b69204edd60a484b3a0c753cde1f8f12fe5cf505d0bcc740f76e2069ef29&width=1200&height=800&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/QV5S634SSVDPLFDC7TJKQIQUHU.jfif
// https://gray-wdbj-prod.gtv-cdn.com/resizer/v2/IRGMGZ7VQNAWBH6PPN2G4ZTKAU.jpg?auth=4e91ac97e4bce4a88e2b6b7f0c58447faf270c570efc5ddffea6d7c90d3e62b8&width=1600&height=900&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/IRGMGZ7VQNAWBH6PPN2G4ZTKAU.jpg
// https://gray-wvir-prod.gtv-cdn.com/resizer/v2/UIAONGT3WVDQNMHDRYDSCJQCT4.jpeg?auth=bd8e6e45bdf0b0800ae321d2d916aca8c2e9909bdca44bc82c302246bc6db428&width=1300&height=975&smart=true -- upscaled?
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/UIAONGT3WVDQNMHDRYDSCJQCT4.jpeg
// https://gray-kvly-prod.gtv-cdn.com/resizer/v2/https%3A%2F%2Fcloudfront-us-east-1.images.arcpublishing.com%2Fgray%2FALWQDT5MIREGTGOVBMOKZYHJBY.jpg?auth=696f1c074052f5d043f46b46b3072587d5b47b7e8ee5356c6c91968a79843a53&width=980&smart=false
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/ALWQDT5MIREGTGOVBMOKZYHJBY.jpg
domain_nosub === "gtv-cdn.com" ||
// thanks to roi:
// https://www.theglobeandmail.com/resizer/v2/MIMBGW3UORBLZMMTL2GASZ75JE.JPG?auth=c570680e25c89027c795085ce398d06291485e026f2830e996db3e2d9a71d3d8&width=900&quality=80
// https://cloudfront-us-east-1.images.arcpublishing.com/tgam/MIMBGW3UORBLZMMTL2GASZ75JE.JPG
Expand All @@ -99675,9 +99685,16 @@ var $$IMU_EXPORT$$;
info_1 = { folder: "prisa", loc: "eu-central-1" };
else if (domain_nowww === "shropshirestar.com")
info_1 = { folder: "mna", loc: "us-east-1" };
else if (domain_nosub === "gtv-cdn.com")
info_1 = { folder: "gray", loc: "us-east-1" };
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+resizer\/+v2\/+([^?#/]+)(?:[?#].*)?$/, "https://cloudfront-" + info_1.loc + ".images.arcpublishing.com/" + info_1.folder + "/$1");
if (newsrc !== src)
return newsrc;
// https://gray-wvir-prod.gtv-cdn.com/resizer/-rzLIYFvpWLGCV9x_yiPNKQVS0Q=/arc-photo-gray/arc3-prod/public/HM5GPD4PQZHRZL2ANO3YXUXC6A.png
// https://cloudfront-us-east-1.images.arcpublishing.com/gray/HM5GPD4PQZHRZL2ANO3YXUXC6A.png
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+resizer\/+.*?\/arc3-prod\/+public\/+([^?#/]+)(?:[?#].*)?$/, "https://cloudfront-" + info_1.loc + ".images.arcpublishing.com/" + info_1.folder + "/$1");
if (newsrc !== src)
return newsrc;
}
if (domain_nowww === "lqj.ch") {
// thanks to roi:
Expand Down

0 comments on commit c03369b

Please sign in to comment.