Skip to content

Commit

Permalink
Add more arc sites from website request
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Nov 8, 2024
1 parent 696020e commit 07c76de
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 2 deletions.
41 changes: 40 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111078,6 +111078,34 @@ var $$IMU_EXPORT$$;
// 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 anonymous for reporting:
// https://www.kn-online.de/resizer/v2/YZRQ522MIFBHHEXIXWIVDXMXSU.jpg?auth=9d78f3115256d353fc0c0bc16ad676dbb71436e299176f76d43f41009a93c845&quality=70&width=596&height=396&smart=true
// https://cloudfront-eu-central-1.images.arcpublishing.com/madsack/YZRQ522MIFBHHEXIXWIVDXMXSU.jpg
domain_nowww === "kn-online.de" ||
// thanks to anonymous for reporting:
// https://www.thedailybeast.com/resizer/v2/NFAHP52BEBG7VL6IYQ76BDMEYY.jpg?smart=true&auth=3018549faff46342fa5420fa6a0902487f7d5ee0ad2ca1ef28483608180b29b7&width=1600&height=899
// https://cloudfront-us-east-1.images.arcpublishing.com/thedailybeast/NFAHP52BEBG7VL6IYQ76BDMEYY.jpg
domain_nowww === "thedailybeast.com" ||
// thanks to anonymous for reporting:
// https://resizer.glanacion.com/resizer/v2/paro-de-intergargo-y-aeronauticos-en-aeroparque-FB64XC5PU5BN3KY4CFCTDPSUHU.JPG?auth=1459d2883fad3b16fd9b543ece73a6543b65a72af93608350e9f9efb3bac4be1&width=302&height=201&quality=70&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/lanacionar/paro-de-intergargo-y-aeronauticos-en-aeroparque-FB64XC5PU5BN3KY4CFCTDPSUHU.JPG
domain === "resizer.glanacion.com" ||
// thanks to anonymous for reporting:
// https://www.lanacion.com.ar/resizer/v2/donald-trump-y-javier-UJQQYMO6VRE3JFUC7GYRSMLRGU.jpeg?auth=6fa75a9d093929ba457fd50da953b7be7b43d0b889d74b36a387944b9f382274&width=488&height=325&quality=70&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/lanacionar/donald-trump-y-javier-UJQQYMO6VRE3JFUC7GYRSMLRGU.jpeg
domain_nowww === "lanacion.com.ar" ||
// thanks to anonymous for reporting:
// https://www.oregonlive.com/resizer/v2/ET6KPTM4OJBNHH4CMZVOD6QSXY.jpg?auth=bfd2d714d208d3b6d065127f2ae5d7caeae30d47591b7989b456f2124f696c0d&width=500&quality=90
// https://cloudfront-us-east-1.images.arcpublishing.com/advancelocal/ET6KPTM4OJBNHH4CMZVOD6QSXY.jpg
domain_nowww === "oregonlive.com" ||
// thanks to anonymous for reporting:
// https://www.ln-online.de/resizer/v2/V65QYIXUVHMFR6OTPLZT3V76LU.jpg?auth=9c2b99ff49ffdbae9d7d604a799e3d0e32358548a82a9390714552d7c0442b7f&quality=70&width=1441&height=1441&smart=true
// https://cloudfront-eu-central-1.images.arcpublishing.com/madsack/V65QYIXUVHMFR6OTPLZT3V76LU.jpg
domain_nowww === "ln-online.de" ||
// thanks to anonymous for reporting:
// https://www.estadao.com.br/resizer/v2/CGTWQPIB2RGGXKG6ABE74R2VFY.jpg?quality=80&auth=9024e28b84d92ec28de196e743cb353157a40e99ce5891e900469b519854444b&width=360&height=202&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/estadao/CGTWQPIB2RGGXKG6ABE74R2VFY.jpg
domain_nowww === "estadao.com.br" ||
// 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 @@ -111092,7 +111120,8 @@ var $$IMU_EXPORT$$;
else if (domain_nowww === "reuters.com")
info = {folder: "reuters", loc: "us-east-2"};
else if (domain_nowww === "masslive.com" ||
domain_nowww === "nj.com")
domain_nowww === "nj.com" ||
domain_nowww === "oregonlive.com")
info = {folder: "advancelocal", loc: "us-east-1"};
else if (domain_nowww === "theglobeandmail.com")
info = {folder: "tgam", loc: "us-east-1"};
Expand All @@ -111104,6 +111133,16 @@ var $$IMU_EXPORT$$;
info = {folder: "gray", loc: "us-east-1"};
else if (domain_nowww === "ajc.com")
info = {folder: "ajc", loc: "us-east-1"};
else if (domain_nowww === "kn-online.de" ||
domain_nowww === "ln-online.de")
info = {folder: "madsack", loc: "eu-central-1"};
else if (domain_nowww === "thedailybeast.com")
info = {folder: "thedailybeast", loc: "us-east-1"};
else if (domain_nosub === "glanacion.com" ||
domain_nowww === "lanacion.com.ar")
info = {folder: "lanacionar", loc: "us-east-1"};
else if (domain_nowww === "estadao.com.br")
info = {folder: "estadao", 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
41 changes: 40 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -99878,6 +99878,34 @@ var $$IMU_EXPORT$$;
// 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 anonymous for reporting:
// https://www.kn-online.de/resizer/v2/YZRQ522MIFBHHEXIXWIVDXMXSU.jpg?auth=9d78f3115256d353fc0c0bc16ad676dbb71436e299176f76d43f41009a93c845&quality=70&width=596&height=396&smart=true
// https://cloudfront-eu-central-1.images.arcpublishing.com/madsack/YZRQ522MIFBHHEXIXWIVDXMXSU.jpg
domain_nowww === "kn-online.de" ||
// thanks to anonymous for reporting:
// https://www.thedailybeast.com/resizer/v2/NFAHP52BEBG7VL6IYQ76BDMEYY.jpg?smart=true&auth=3018549faff46342fa5420fa6a0902487f7d5ee0ad2ca1ef28483608180b29b7&width=1600&height=899
// https://cloudfront-us-east-1.images.arcpublishing.com/thedailybeast/NFAHP52BEBG7VL6IYQ76BDMEYY.jpg
domain_nowww === "thedailybeast.com" ||
// thanks to anonymous for reporting:
// https://resizer.glanacion.com/resizer/v2/paro-de-intergargo-y-aeronauticos-en-aeroparque-FB64XC5PU5BN3KY4CFCTDPSUHU.JPG?auth=1459d2883fad3b16fd9b543ece73a6543b65a72af93608350e9f9efb3bac4be1&width=302&height=201&quality=70&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/lanacionar/paro-de-intergargo-y-aeronauticos-en-aeroparque-FB64XC5PU5BN3KY4CFCTDPSUHU.JPG
domain === "resizer.glanacion.com" ||
// thanks to anonymous for reporting:
// https://www.lanacion.com.ar/resizer/v2/donald-trump-y-javier-UJQQYMO6VRE3JFUC7GYRSMLRGU.jpeg?auth=6fa75a9d093929ba457fd50da953b7be7b43d0b889d74b36a387944b9f382274&width=488&height=325&quality=70&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/lanacionar/donald-trump-y-javier-UJQQYMO6VRE3JFUC7GYRSMLRGU.jpeg
domain_nowww === "lanacion.com.ar" ||
// thanks to anonymous for reporting:
// https://www.oregonlive.com/resizer/v2/ET6KPTM4OJBNHH4CMZVOD6QSXY.jpg?auth=bfd2d714d208d3b6d065127f2ae5d7caeae30d47591b7989b456f2124f696c0d&width=500&quality=90
// https://cloudfront-us-east-1.images.arcpublishing.com/advancelocal/ET6KPTM4OJBNHH4CMZVOD6QSXY.jpg
domain_nowww === "oregonlive.com" ||
// thanks to anonymous for reporting:
// https://www.ln-online.de/resizer/v2/V65QYIXUVHMFR6OTPLZT3V76LU.jpg?auth=9c2b99ff49ffdbae9d7d604a799e3d0e32358548a82a9390714552d7c0442b7f&quality=70&width=1441&height=1441&smart=true
// https://cloudfront-eu-central-1.images.arcpublishing.com/madsack/V65QYIXUVHMFR6OTPLZT3V76LU.jpg
domain_nowww === "ln-online.de" ||
// thanks to anonymous for reporting:
// https://www.estadao.com.br/resizer/v2/CGTWQPIB2RGGXKG6ABE74R2VFY.jpg?quality=80&auth=9024e28b84d92ec28de196e743cb353157a40e99ce5891e900469b519854444b&width=360&height=202&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/estadao/CGTWQPIB2RGGXKG6ABE74R2VFY.jpg
domain_nowww === "estadao.com.br" ||
// 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 @@ -99891,7 +99919,8 @@ var $$IMU_EXPORT$$;
else if (domain_nowww === "reuters.com")
info_1 = { folder: "reuters", loc: "us-east-2" };
else if (domain_nowww === "masslive.com" ||
domain_nowww === "nj.com")
domain_nowww === "nj.com" ||
domain_nowww === "oregonlive.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 @@ -99903,6 +99932,16 @@ var $$IMU_EXPORT$$;
info_1 = { folder: "gray", loc: "us-east-1" };
else if (domain_nowww === "ajc.com")
info_1 = { folder: "ajc", loc: "us-east-1" };
else if (domain_nowww === "kn-online.de" ||
domain_nowww === "ln-online.de")
info_1 = { folder: "madsack", loc: "eu-central-1" };
else if (domain_nowww === "thedailybeast.com")
info_1 = { folder: "thedailybeast", loc: "us-east-1" };
else if (domain_nosub === "glanacion.com" ||
domain_nowww === "lanacion.com.ar")
info_1 = { folder: "lanacionar", loc: "us-east-1" };
else if (domain_nowww === "estadao.com.br")
info_1 = { folder: "estadao", 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 07c76de

Please sign in to comment.