From 696020e5b35bf52fbbf9197d156e9280ad67ec66 Mon Sep 17 00:00:00 2001 From: qsniyg Date: Fri, 8 Nov 2024 07:41:44 +0000 Subject: [PATCH] More arc sites (fixes #1375) --- src/userscript.ts | 15 ++++++++++++++- userscript.user.js | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/userscript.ts b/src/userscript.ts index b971d4cb..555bdd9f 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -111068,6 +111068,16 @@ var $$IMU_EXPORT$$; // 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 liamengland1 on github: https://github.com/qsniyg/maxurl/issues/1375 + // https://www.ajc.com/resizer/v2/SK2DBT6OQZRKZMFLNQXDW3ONJM.jpg?auth=852f70ce395b0017a080c454b8600d84c15f9d8625ab106a1ed17a1762b5dd07&width=1600&height=900&smart=true + // https://cloudfront-us-east-1.images.arcpublishing.com/ajc/SK2DBT6OQZRKZMFLNQXDW3ONJM.jpg + // https://www.ajc.com/resizer/v2/2NQ42HBDE5KMVK7YD3IDJKTDTI.jpg?auth=806c87c71561e3ee70b1bfb39a869c585603a23c1f55db0a17cc084d6a465baf&width=1600&height=900&smart=true + // https://cloudfront-us-east-1.images.arcpublishing.com/ajc/2NQ42HBDE5KMVK7YD3IDJKTDTI.jpg + domain_nowww === "ajc.com" || + // thanks to liamengland1 on github: https://github.com/qsniyg/maxurl/issues/1375 + // https://www.nj.com/resizer/v2/NKR3FPARHRDGNNBHG6X3TXV2J4.jpg?auth=c9d4d180304d4d024ac5498d54e550c1a244b4783ab3432446502f296536c664&width=600&height=450&smart=true + // https://cloudfront-us-east-1.images.arcpublishing.com/advancelocal/NKR3FPARHRDGNNBHG6X3TXV2J4.jpg + domain_nowww === "nj.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 @@ -111081,7 +111091,8 @@ var $$IMU_EXPORT$$; info = {folder: "nzme", loc: "ap-southeast-2"}; else if (domain_nowww === "reuters.com") info = {folder: "reuters", loc: "us-east-2"}; - else if (domain_nowww === "masslive.com") + else if (domain_nowww === "masslive.com" || + domain_nowww === "nj.com") info = {folder: "advancelocal", loc: "us-east-1"}; else if (domain_nowww === "theglobeandmail.com") info = {folder: "tgam", loc: "us-east-1"}; @@ -111091,6 +111102,8 @@ var $$IMU_EXPORT$$; info = {folder: "mna", loc: "us-east-1"}; else if (domain_nosub === "gtv-cdn.com") info = {folder: "gray", loc: "us-east-1"}; + else if (domain_nowww === "ajc.com") + info = {folder: "ajc", loc: "us-east-1"}; newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+resizer\/+v2\/+([^?#/]+)(?:[?#].*)?$/, "https://cloudfront-" + info.loc + ".images.arcpublishing.com/" + info.folder + "/$1"); if (newsrc !== src) diff --git a/userscript.user.js b/userscript.user.js index 3bb930e9..018cc1ab 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -99868,6 +99868,16 @@ var $$IMU_EXPORT$$; // 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 liamengland1 on github: https://github.com/qsniyg/maxurl/issues/1375 + // https://www.ajc.com/resizer/v2/SK2DBT6OQZRKZMFLNQXDW3ONJM.jpg?auth=852f70ce395b0017a080c454b8600d84c15f9d8625ab106a1ed17a1762b5dd07&width=1600&height=900&smart=true + // https://cloudfront-us-east-1.images.arcpublishing.com/ajc/SK2DBT6OQZRKZMFLNQXDW3ONJM.jpg + // https://www.ajc.com/resizer/v2/2NQ42HBDE5KMVK7YD3IDJKTDTI.jpg?auth=806c87c71561e3ee70b1bfb39a869c585603a23c1f55db0a17cc084d6a465baf&width=1600&height=900&smart=true + // https://cloudfront-us-east-1.images.arcpublishing.com/ajc/2NQ42HBDE5KMVK7YD3IDJKTDTI.jpg + domain_nowww === "ajc.com" || + // thanks to liamengland1 on github: https://github.com/qsniyg/maxurl/issues/1375 + // https://www.nj.com/resizer/v2/NKR3FPARHRDGNNBHG6X3TXV2J4.jpg?auth=c9d4d180304d4d024ac5498d54e550c1a244b4783ab3432446502f296536c664&width=600&height=450&smart=true + // https://cloudfront-us-east-1.images.arcpublishing.com/advancelocal/NKR3FPARHRDGNNBHG6X3TXV2J4.jpg + domain_nowww === "nj.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 @@ -99880,7 +99890,8 @@ var $$IMU_EXPORT$$; info_1 = { folder: "nzme", loc: "ap-southeast-2" }; else if (domain_nowww === "reuters.com") info_1 = { folder: "reuters", loc: "us-east-2" }; - else if (domain_nowww === "masslive.com") + else if (domain_nowww === "masslive.com" || + domain_nowww === "nj.com") info_1 = { folder: "advancelocal", loc: "us-east-1" }; else if (domain_nowww === "theglobeandmail.com") info_1 = { folder: "tgam", loc: "us-east-1" }; @@ -99890,6 +99901,8 @@ var $$IMU_EXPORT$$; info_1 = { folder: "mna", loc: "us-east-1" }; else if (domain_nosub === "gtv-cdn.com") info_1 = { folder: "gray", loc: "us-east-1" }; + else if (domain_nowww === "ajc.com") + info_1 = { folder: "ajc", 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;