diff --git a/src/userscript.ts b/src/userscript.ts index ef01b6b6..f42c6106 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -105067,7 +105067,12 @@ var $$IMU_EXPORT$$; // https://ebookstore.sony.jp/cms-assets/images/63/635cda43ea7f394bafec3f01070ad47a7cb54dc3_s.jpg // https://ebookstore.sony.jp/cms-assets/images/63/635cda43ea7f394bafec3f01070ad47a7cb54dc3_l.jpg // https://ebookstore.sony.jp/cms-assets/images/63/635cda43ea7f394bafec3f01070ad47a7cb54dc3_original.jpg - return src.replace(/(\/images\/+[0-9a-f]{2}\/+[0-9a-f]{20,})_[a-z]+\./, "$1_original."); + // thanks to anonymous for reporting: + // https://ebookstore.sony.jp/photo/LT00018895/LT000188953001995712_LARGE.jpg + // https://ebookstore.sony.jp/photo/LT00018895/LT000188953001995712_XLARGE.jpg + return src + .replace(/(\/images\/+[0-9a-f]{2}\/+[0-9a-f]{20,})_[a-z]+\./, "$1_original.") + .replace(/(\/photo\/+[A-Z]*[0-9]+\/+[A-Z]*[0-9]+)_(?:SMALL|LARGE)\./, "$1_XLARGE."); } if (domain === "prod-ripcut-delivery.disney-plus.net") { @@ -109045,6 +109050,41 @@ var $$IMU_EXPORT$$; return src.replace(/^([a-z]+:\/\/[^/]+\/+[0-9]+_[0-9a-f]{10,}_)[bnz]\./, "$1k."); } + if (domain_nowww === "foto-kurier.pl") { + // thanks to anonymous for reporting: + // https://www.foto-kurier.pl/users/galleries/e644e4178b47ac69e502a86dc4949fff_m.jpg + // https://www.foto-kurier.pl/users/galleries/e644e4178b47ac69e502a86dc4949fff_280.jpg + // https://www.foto-kurier.pl/users/galleries/e644e4178b47ac69e502a86dc4949fff_p.jpg -- 1200x717 + return src.replace(/(\/users\/+galleries\/+[0-9a-f]{20,})(?:_(?:280|m))?(\.)/, "$1_p$2"); + } + + if (domain === "media.c5n.com") { + // thanks to anonymous for reporting: + // https://media.c5n.com/p/eb70ff1c9392f51ac5d6e10c26c11b3d/adjuntos/326/imagenes/000/228/0000228362/790x0/smart/taylor-swift-argentina.jpg + // https://media.c5n.com/adjuntos/326/imagenes/000/228/0000228362.jpg + // https://media.c5n.com/p/a79c98cade1214e0ae61440d3c3c326c/adjuntos/326/imagenes/000/003/0000003863/meta-mark-zuckerberg.jfif + // https://media.c5n.com/adjuntos/326/imagenes/000/003/0000003863.jfif + return src.replace(/\/p\/+[0-9a-f]{20,}\/+(adjuntos\/+[0-9]+\/+imagenes\/+[0-9]{3}\/+[0-9]{3}\/+[0-9]+)\/.*?(\.[a-z]+)(?:[?#].*)?$/, "/$1$2"); + } + + if (domain_nosub === "hket.com" && /^static[0-9]*\./.test(domain)) { + // thanks to anonymous for reporting: + // https://static04.hket.com/res/v3/image/content/3640000/3642758/viutv20231031_01_1024.JPG + // https://static04.hket.com/res/v3/image/content/3640000/3642758/viutv20231031_01_1200.JPG + return src.replace(/(\/res\/+v3\/+image\/+content\/+[0-9]+\/+[0-9]+\/+[^/]+)_1024\./, "$1_1200."); + } + + if (domain === "cdn.80.lv") { + // thanks to anonymous for reporting: + // https://cdn.80.lv/api/upload/content/e1/images/6542113906abc/widen_920x0.jpg + // https://cdn.80.lv/api/upload/content/e1/6542113906abc.jpg + // https://cdn.80.lv/api/upload/person/5/images/626fc1ad8122c/cover_60x60.jpeg + // https://cdn.80.lv/api/upload/person/5/626fc1ad8122c.jpeg + // https://cdn.80.lv/api/upload/post/24538/images/6555fa32f0929/crop_cd5f3b6c_400x360.jpg + // https://cdn.80.lv/api/upload/post/24538/6555fa32f0929.jpg + return src.replace(/(\/api\/+upload\/+[a-z]+\/+[0-9a-f]+\/+)images\/+([0-9a-f]{10,})\/+[^/.]+(\.[a-z]+)(?:[?#].*)?$/, "$1$2$3"); + } + diff --git a/userscript.user.js b/userscript.user.js index 194191f0..242bc919 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -94243,7 +94243,12 @@ var $$IMU_EXPORT$$; // https://ebookstore.sony.jp/cms-assets/images/63/635cda43ea7f394bafec3f01070ad47a7cb54dc3_s.jpg // https://ebookstore.sony.jp/cms-assets/images/63/635cda43ea7f394bafec3f01070ad47a7cb54dc3_l.jpg // https://ebookstore.sony.jp/cms-assets/images/63/635cda43ea7f394bafec3f01070ad47a7cb54dc3_original.jpg - return src.replace(/(\/images\/+[0-9a-f]{2}\/+[0-9a-f]{20,})_[a-z]+\./, "$1_original."); + // thanks to anonymous for reporting: + // https://ebookstore.sony.jp/photo/LT00018895/LT000188953001995712_LARGE.jpg + // https://ebookstore.sony.jp/photo/LT00018895/LT000188953001995712_XLARGE.jpg + return src + .replace(/(\/images\/+[0-9a-f]{2}\/+[0-9a-f]{20,})_[a-z]+\./, "$1_original.") + .replace(/(\/photo\/+[A-Z]*[0-9]+\/+[A-Z]*[0-9]+)_(?:SMALL|LARGE)\./, "$1_XLARGE."); } if (domain === "prod-ripcut-delivery.disney-plus.net") { // thanks to nimbuz on discord: @@ -97816,6 +97821,37 @@ var $$IMU_EXPORT$$; // x (different hash), k, b, n ,z return src.replace(/^([a-z]+:\/\/[^/]+\/+[0-9]+_[0-9a-f]{10,}_)[bnz]\./, "$1k."); } + if (domain_nowww === "foto-kurier.pl") { + // thanks to anonymous for reporting: + // https://www.foto-kurier.pl/users/galleries/e644e4178b47ac69e502a86dc4949fff_m.jpg + // https://www.foto-kurier.pl/users/galleries/e644e4178b47ac69e502a86dc4949fff_280.jpg + // https://www.foto-kurier.pl/users/galleries/e644e4178b47ac69e502a86dc4949fff_p.jpg -- 1200x717 + return src.replace(/(\/users\/+galleries\/+[0-9a-f]{20,})(?:_(?:280|m))?(\.)/, "$1_p$2"); + } + if (domain === "media.c5n.com") { + // thanks to anonymous for reporting: + // https://media.c5n.com/p/eb70ff1c9392f51ac5d6e10c26c11b3d/adjuntos/326/imagenes/000/228/0000228362/790x0/smart/taylor-swift-argentina.jpg + // https://media.c5n.com/adjuntos/326/imagenes/000/228/0000228362.jpg + // https://media.c5n.com/p/a79c98cade1214e0ae61440d3c3c326c/adjuntos/326/imagenes/000/003/0000003863/meta-mark-zuckerberg.jfif + // https://media.c5n.com/adjuntos/326/imagenes/000/003/0000003863.jfif + return src.replace(/\/p\/+[0-9a-f]{20,}\/+(adjuntos\/+[0-9]+\/+imagenes\/+[0-9]{3}\/+[0-9]{3}\/+[0-9]+)\/.*?(\.[a-z]+)(?:[?#].*)?$/, "/$1$2"); + } + if (domain_nosub === "hket.com" && /^static[0-9]*\./.test(domain)) { + // thanks to anonymous for reporting: + // https://static04.hket.com/res/v3/image/content/3640000/3642758/viutv20231031_01_1024.JPG + // https://static04.hket.com/res/v3/image/content/3640000/3642758/viutv20231031_01_1200.JPG + return src.replace(/(\/res\/+v3\/+image\/+content\/+[0-9]+\/+[0-9]+\/+[^/]+)_1024\./, "$1_1200."); + } + if (domain === "cdn.80.lv") { + // thanks to anonymous for reporting: + // https://cdn.80.lv/api/upload/content/e1/images/6542113906abc/widen_920x0.jpg + // https://cdn.80.lv/api/upload/content/e1/6542113906abc.jpg + // https://cdn.80.lv/api/upload/person/5/images/626fc1ad8122c/cover_60x60.jpeg + // https://cdn.80.lv/api/upload/person/5/626fc1ad8122c.jpeg + // https://cdn.80.lv/api/upload/post/24538/images/6555fa32f0929/crop_cd5f3b6c_400x360.jpg + // https://cdn.80.lv/api/upload/post/24538/6555fa32f0929.jpg + return src.replace(/(\/api\/+upload\/+[a-z]+\/+[0-9a-f]+\/+)images\/+([0-9a-f]{10,})\/+[^/.]+(\.[a-z]+)(?:[?#].*)?$/, "$1$2$3"); + } // -- 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