diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c4068869..9482ba2c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -16,7 +16,7 @@ Bugfixes: * Fix GM_download headers for Tampermonkey and Violentmonkey * Fix header parsing for Tampermonkey BETA (thanks to Broly for reporting) -Special thanks to thiagojramos, fireattack, nimbuz, Froktime, fyhtma, SakalliTavernaci, TheLastZombie, oifj34f34f, Solus, sn3akyb3ar, n0stal6ic, nyahgust, vscum, TristanWasTaken, BlindWanda, SUPER7X, n0099, remlap, CetaceanNation, bsydow, tathastu871, roi, ItsProyal, lazybookwyrm, James Joint, Machou, Broly, siloricity, ValiumBear, siloricity, evilxsloth, leoli1110 for their contributions and reports for this release +Special thanks to thiagojramos, fireattack, nimbuz, Froktime, fyhtma, SakalliTavernaci, TheLastZombie, oifj34f34f, Solus, sn3akyb3ar, n0stal6ic, nyahgust, vscum, TristanWasTaken, BlindWanda, SUPER7X, n0099, remlap, CetaceanNation, bsydow, tathastu871, roi, ItsProyal, lazybookwyrm, James Joint, Machou, Broly, siloricity, ValiumBear, siloricity, evilxsloth, leoli1110, ljcool2006 for their contributions and reports for this release --- diff --git a/src/userscript.ts b/src/userscript.ts index fc7db990..136f6654 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -37538,6 +37538,16 @@ var $$IMU_EXPORT$$; url: src, bad: "mask" }; + + // thanks to ljcool2006 on github: https://github.com/qsniyg/maxurl/issues/1338 + // https://community.akamai.steamstatic.com/economy/image/RgGbIK_Xaakl8PcQ2KQKK0i_2YIC7wZf7gTzKvLti-4wttL6ECYQfWnVrvtPO17Cg21bxebO3U9ipAtKlE8ALp2SN7cy4BnDeP3mbTsvYTyjoI8dxrcZq7BhYmFUB80R9lCkKSBHR24nqw/330x192?allow_animated=1 + // https://community.akamai.steamstatic.com/economy/image/RgGbIK_Xaakl8PcQ2KQKK0i_2YIC7wZf7gTzKvLti-4wttL6ECYQfWnVrvtPO17Cg21bxebO3U9ipAtKlE8ALp2SN7cy4BnDeP3mbTsvYTyjoI8dxrcZq7BhYmFUB80R9lCkKSBHR24nqw/?allow_animated=1 + newsrc = src.replace(/(\/economy\/+image\/+[^/]+\/+)[0-9]+x[0-9]+([?#].*)?$/, "$1$2"); + if (newsrc !== src) + return { + url: newsrc, + head_wrong_contentlength: true + }; } if ((domain_nosub === "steamstatic.com" && domain.match(/(?:cdn|shared)\.[^.]*\.steamstatic\.com/)) || diff --git a/userscript.user.js b/userscript.user.js index 4681d9c7..e940d076 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -34342,6 +34342,15 @@ var $$IMU_EXPORT$$; url: src, bad: "mask" }; + // thanks to ljcool2006 on github: https://github.com/qsniyg/maxurl/issues/1338 + // https://community.akamai.steamstatic.com/economy/image/RgGbIK_Xaakl8PcQ2KQKK0i_2YIC7wZf7gTzKvLti-4wttL6ECYQfWnVrvtPO17Cg21bxebO3U9ipAtKlE8ALp2SN7cy4BnDeP3mbTsvYTyjoI8dxrcZq7BhYmFUB80R9lCkKSBHR24nqw/330x192?allow_animated=1 + // https://community.akamai.steamstatic.com/economy/image/RgGbIK_Xaakl8PcQ2KQKK0i_2YIC7wZf7gTzKvLti-4wttL6ECYQfWnVrvtPO17Cg21bxebO3U9ipAtKlE8ALp2SN7cy4BnDeP3mbTsvYTyjoI8dxrcZq7BhYmFUB80R9lCkKSBHR24nqw/?allow_animated=1 + newsrc = src.replace(/(\/economy\/+image\/+[^/]+\/+)[0-9]+x[0-9]+([?#].*)?$/, "$1$2"); + if (newsrc !== src) + return { + url: newsrc, + head_wrong_contentlength: true + }; } if ((domain_nosub === "steamstatic.com" && domain.match(/(?:cdn|shared)\.[^.]*\.steamstatic\.com/)) || // https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2c/2c43030ea4900ebfcd3c42a4e665e9d926b488ef_medium.jpg