Skip to content

Commit

Permalink
More arc sites (fixes #1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Nov 8, 2024
1 parent 9ed1486 commit 696020e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"};
Expand All @@ -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)
Expand Down
15 changes: 14 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" };
Expand All @@ -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;
Expand Down

0 comments on commit 696020e

Please sign in to comment.