diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 24c2fcb9..07ce679d 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,6 @@ 2023.3.1 (in-dev) -Special thanks to fireattack, nimbuz, Froktime for their contributions and reports for this release +Special thanks to fireattack, nimbuz, Froktime, fyhtma for their contributions and reports for this release --- diff --git a/src/userscript.ts b/src/userscript.ts index ae6bf263..040d10a1 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -41315,7 +41315,11 @@ var $$IMU_EXPORT$$; // thanks to fyhtma on github: https://github.com/qsniyg/maxurl/issues/1193 // https://xperienceunited.com:8080/userphotos/63f20f4cd1ab9a64b2909056-1676823380378-800.webp?0-6406eac4bc4b4c2ad16245c5.webp // https://xperienceunited.com:8080/userphotos/63f20f4cd1ab9a64b2909056-1676823380378.webp?0-6406eac4bc4b4c2ad16245c5.webp - return src.replace(/(\/userphotos\/+[0-9a-f]+-[0-9]+)-[0-9]+\./, "$1.") + // https://xperienceunited.com:8080/userphotos/63f20f4cd1ab9a64b2909056-1676823380378-thumbnail?0-6406eac4bc4b4c2ad16245c5.webp + // https://xperienceunited.com:8080/userphotos/63f20f4cd1ab9a64b2909056-1676823380378.webp?0-6406eac4bc4b4c2ad16245c5.webp + return src + .replace(/(\/userphotos\/+[0-9a-f]+-[0-9]+)-thumbnail([?#].*)?$/, "$1.webp$2") + .replace(/(\/userphotos\/+[0-9a-f]+-[0-9]+)-[0-9]+\./, "$1.") } if (domain === "image.thanhnien.vn") { diff --git a/userscript.user.js b/userscript.user.js index 111e50e0..0fc2c59f 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -37783,7 +37783,11 @@ var $$IMU_EXPORT$$; // thanks to fyhtma on github: https://github.com/qsniyg/maxurl/issues/1193 // https://xperienceunited.com:8080/userphotos/63f20f4cd1ab9a64b2909056-1676823380378-800.webp?0-6406eac4bc4b4c2ad16245c5.webp // https://xperienceunited.com:8080/userphotos/63f20f4cd1ab9a64b2909056-1676823380378.webp?0-6406eac4bc4b4c2ad16245c5.webp - return src.replace(/(\/userphotos\/+[0-9a-f]+-[0-9]+)-[0-9]+\./, "$1."); + // https://xperienceunited.com:8080/userphotos/63f20f4cd1ab9a64b2909056-1676823380378-thumbnail?0-6406eac4bc4b4c2ad16245c5.webp + // https://xperienceunited.com:8080/userphotos/63f20f4cd1ab9a64b2909056-1676823380378.webp?0-6406eac4bc4b4c2ad16245c5.webp + return src + .replace(/(\/userphotos\/+[0-9a-f]+-[0-9]+)-thumbnail([?#].*)?$/, "$1.webp$2") + .replace(/(\/userphotos\/+[0-9a-f]+-[0-9]+)-[0-9]+\./, "$1."); } if (domain === "image.thanhnien.vn") { // https://image.thanhnien.vn/1600/Uploaded/phangiang/2016_03_12/anh_lfyk.jpg