diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 001bc62e..372207bd 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,6 @@ 2024.9.0 (in-dev) -Special thanks to nimbuz, remlap, Solus, immewnity, Froktime for their contributions and reports for this release +Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl for their contributions and reports for this release --- diff --git a/src/userscript.ts b/src/userscript.ts index cba060fd..c3ff7f3f 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -76667,10 +76667,13 @@ var $$IMU_EXPORT$$; // https://ds1.static.rtbf.be/pictureGallery/album/23889/big/f9e31c7ff7d5ca38a36b0b127a888f73-1490188572.png -- 800x1136 // https://ds1.static.rtbf.be/pictureGallery/album/23889/f9e31c7ff7d5ca38a36b0b127a888f73-1490188572.png -- 839x1191 // https://ds1.static.rtbf.be/pictureGallery/album/10646/16df544d2d7cc73b0fedef65d1f6b74e.jpg -- 2537x3800 + // thanks to anonymous for reporting: + // https://ds.static.rtbf.be/article/image/770xAuto/2/0/0/f0f254331b4693742ea6cc1379b84e73-1573051205.jpg + // https://ds.static.rtbf.be/article/image/original/2/0/0/f0f254331b4693742ea6cc1379b84e73-1573051205.jpg // other: // https://ds1.static.rtbf.be/image/media/object/default/16x9/1248x702/b/7/d/b7d43072ff68bb791ed0813b56e7e498.jpg return src - .replace(/\/article\/+image\/+[0-9]+x[0-9]+\/+/, "/article/image/original/") + .replace(/\/article\/+image\/+[0-9Auto]+x[0-9Auto]+\/+/, "/article/image/original/") .replace(/(\/pictureGallery\/+album\/+[0-9]+\/+)(?:thumb|big)\/+/, "$1"); } @@ -110265,6 +110268,16 @@ var $$IMU_EXPORT$$; }; } + if (domain_nosub === "hpplus.jp" && /^cdn-/.test(domain)) { + // thanks to billkewl on github: https://github.com/qsniyg/maxurl/issues/1365 + // https://cdn-baila.hpplus.jp/image/00/0009813f-20da-46c4-ae46-ce117e786423-1280x1096.jpg + // https://cdn-baila.hpplus.jp/image/00/0009813f-20da-46c4-ae46-ce117e786423.jpg + // doesn't work for all: + // https://cdn-baila.hpplus.jp/image/d1/d17274ad-f5be-4e78-bc5c-53fab5ded54d-1280x1096.jpg + // https://cdn-baila.hpplus.jp/image/d1/d17274ad-f5be-4e78-bc5c-53fab5ded54d.jpg -- 404? + return src.replace(/(\/image\/+[0-9a-f]{2}\/+[-0-9a-f]{10,})-[0-9]+x[0-9]+\./, "$1."); + } + if (domain === "img-baila.hpplus.jp" || // thanks to fireattack on discord: // https://img-maquia.hpplus.jp/common/large/image/bf/bfe6887f-3f9f-4dd6-aa6c-acebf605f285-3000x2000.jpg @@ -116456,6 +116469,22 @@ var $$IMU_EXPORT$$; return src.replace(/\/sih\/.*\/pdt\/+/, "/pdt/"); } + if (domain === "d1rig8ldkblbsy.cloudfront.net") { + // thanks to anonymous for reporting: + // https://d1rig8ldkblbsy.cloudfront.net/app/uploads/2024/09/06123104/gettyimages-2169330625-crop-1725628081-1920x1080.jpg + // https://d1rig8ldkblbsy.cloudfront.net/app/uploads/2024/09/06123104/gettyimages-2169330625.jpg + return src.replace(/(\/app\/+uploads\/+[0-9]{4}\/+[0-9]{2}\/+[0-9]+\/+[^/]+)-crop-[0-9]+-[0-9]+x[0-9]+\./, "$1."); + } + + if (domain === "media-img.lucyinthesky.com") { + // thanks to anonymous for reporting: + // https://media-img.lucyinthesky.com/data/Sep24/760xAUTO/21bf7e8d-581e-44a8-bceb-af944c272f07.jpg + // https://media-img.lucyinthesky.com/data/Sep24/21bf7e8d-581e-44a8-bceb-af944c272f07.jpg + // https://media-img.lucyinthesky.com/1700xAUTO/b0996b6c-0ac5-4021-9173-7a537dd1b516.jpg + // https://media-img.lucyinthesky.com/b0996b6c-0ac5-4021-9173-7a537dd1b516.jpg + return src.replace(/(:\/\/[^/]+\/+(?:data\/+[^/]+\/+)?)[0-9AUTO]+x[0-9AUTO]+\/+/, "$1"); + } + diff --git a/userscript.user.js b/userscript.user.js index a113ad22..e91b49d4 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -69451,10 +69451,13 @@ var $$IMU_EXPORT$$; // https://ds1.static.rtbf.be/pictureGallery/album/23889/big/f9e31c7ff7d5ca38a36b0b127a888f73-1490188572.png -- 800x1136 // https://ds1.static.rtbf.be/pictureGallery/album/23889/f9e31c7ff7d5ca38a36b0b127a888f73-1490188572.png -- 839x1191 // https://ds1.static.rtbf.be/pictureGallery/album/10646/16df544d2d7cc73b0fedef65d1f6b74e.jpg -- 2537x3800 + // thanks to anonymous for reporting: + // https://ds.static.rtbf.be/article/image/770xAuto/2/0/0/f0f254331b4693742ea6cc1379b84e73-1573051205.jpg + // https://ds.static.rtbf.be/article/image/original/2/0/0/f0f254331b4693742ea6cc1379b84e73-1573051205.jpg // other: // https://ds1.static.rtbf.be/image/media/object/default/16x9/1248x702/b/7/d/b7d43072ff68bb791ed0813b56e7e498.jpg return src - .replace(/\/article\/+image\/+[0-9]+x[0-9]+\/+/, "/article/image/original/") + .replace(/\/article\/+image\/+[0-9Auto]+x[0-9Auto]+\/+/, "/article/image/original/") .replace(/(\/pictureGallery\/+album\/+[0-9]+\/+)(?:thumb|big)\/+/, "$1"); } if (domain === "d5xydlzdo08s0.cloudfront.net") { @@ -99131,6 +99134,15 @@ var $$IMU_EXPORT$$; head_wrong_contenttype: true }; } + if (domain_nosub === "hpplus.jp" && /^cdn-/.test(domain)) { + // thanks to billkewl on github: https://github.com/qsniyg/maxurl/issues/1365 + // https://cdn-baila.hpplus.jp/image/00/0009813f-20da-46c4-ae46-ce117e786423-1280x1096.jpg + // https://cdn-baila.hpplus.jp/image/00/0009813f-20da-46c4-ae46-ce117e786423.jpg + // doesn't work for all: + // https://cdn-baila.hpplus.jp/image/d1/d17274ad-f5be-4e78-bc5c-53fab5ded54d-1280x1096.jpg + // https://cdn-baila.hpplus.jp/image/d1/d17274ad-f5be-4e78-bc5c-53fab5ded54d.jpg -- 404? + return src.replace(/(\/image\/+[0-9a-f]{2}\/+[-0-9a-f]{10,})-[0-9]+x[0-9]+\./, "$1."); + } if (domain === "img-baila.hpplus.jp" || // thanks to fireattack on discord: // https://img-maquia.hpplus.jp/common/large/image/bf/bfe6887f-3f9f-4dd6-aa6c-acebf605f285-3000x2000.jpg @@ -104651,6 +104663,20 @@ var $$IMU_EXPORT$$; // https://contents.kyobobook.co.kr/pdt/480D240616840.jpg return src.replace(/\/sih\/.*\/pdt\/+/, "/pdt/"); } + if (domain === "d1rig8ldkblbsy.cloudfront.net") { + // thanks to anonymous for reporting: + // https://d1rig8ldkblbsy.cloudfront.net/app/uploads/2024/09/06123104/gettyimages-2169330625-crop-1725628081-1920x1080.jpg + // https://d1rig8ldkblbsy.cloudfront.net/app/uploads/2024/09/06123104/gettyimages-2169330625.jpg + return src.replace(/(\/app\/+uploads\/+[0-9]{4}\/+[0-9]{2}\/+[0-9]+\/+[^/]+)-crop-[0-9]+-[0-9]+x[0-9]+\./, "$1."); + } + if (domain === "media-img.lucyinthesky.com") { + // thanks to anonymous for reporting: + // https://media-img.lucyinthesky.com/data/Sep24/760xAUTO/21bf7e8d-581e-44a8-bceb-af944c272f07.jpg + // https://media-img.lucyinthesky.com/data/Sep24/21bf7e8d-581e-44a8-bceb-af944c272f07.jpg + // https://media-img.lucyinthesky.com/1700xAUTO/b0996b6c-0ac5-4021-9173-7a537dd1b516.jpg + // https://media-img.lucyinthesky.com/b0996b6c-0ac5-4021-9173-7a537dd1b516.jpg + return src.replace(/(:\/\/[^/]+\/+(?:data\/+[^/]+\/+)?)[0-9AUTO]+x[0-9AUTO]+\/+/, "$1"); + } // -- 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