diff --git a/src/userscript.ts b/src/userscript.ts index 05de52e4..a7db3f46 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -111987,6 +111987,15 @@ var $$IMU_EXPORT$$; return src.replace(/(\/images\/+covers\/+)large\/+/, "$1full/"); } + if (domain === "smedia.alkemics.com") { + // thanks to nimbuz on discord for reporting: https://github.com/qsniyg/maxurl/issues/938 + // https://smedia.alkemics.com/product/picture/exportable/833a487d-83a6-4082-8b26-d445448a36c8/512x512.jpg + // https://smedia.alkemics.com/product/picture/833a487d-83a6-4082-8b26-d445448a36c8.png + newsrc = src.replace(/(\/product\/+picture\/+)exportable\/+([-0-9a-f]{10,})\/+[0-9]+x[0-9]+\./, "$1$2."); + if (newsrc !== src) + return add_extensions(newsrc); + } + diff --git a/userscript.user.js b/userscript.user.js index 9eb80982..f37d3ac8 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -100513,6 +100513,14 @@ var $$IMU_EXPORT$$; // https://covers.audiobooks.com/images/thumbs/9788491298496.jpg return src.replace(/(\/images\/+covers\/+)large\/+/, "$1full/"); } + if (domain === "smedia.alkemics.com") { + // thanks to nimbuz on discord for reporting: https://github.com/qsniyg/maxurl/issues/938 + // https://smedia.alkemics.com/product/picture/exportable/833a487d-83a6-4082-8b26-d445448a36c8/512x512.jpg + // https://smedia.alkemics.com/product/picture/833a487d-83a6-4082-8b26-d445448a36c8.png + newsrc = src.replace(/(\/product\/+picture\/+)exportable\/+([-0-9a-f]{10,})\/+[0-9]+x[0-9]+\./, "$1$2."); + if (newsrc !== src) + return add_extensions(newsrc); + } // -- 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