From a292c578922cd2c6b7cf8694215656b397efba25 Mon Sep 17 00:00:00 2001 From: qsniyg Date: Sun, 15 Sep 2024 20:33:06 +0000 Subject: [PATCH] Support px-monkey.com (fixes #1335) --- src/userscript.ts | 10 ++++++++++ userscript.user.js | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/src/userscript.ts b/src/userscript.ts index e9661f86..37d92e2e 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -116523,6 +116523,16 @@ var $$IMU_EXPORT$$; return src.replace(/(\/assets\/+releases\/+)fitted\/+/, "$1original/"); } + if (domain_nowww === "px-monkey.com" || + // thanks to fyhtma on github: https://github.com/qsniyg/maxurl/issues/1335 + // http://cdn.myshoptet.com/usr/www.px-monkey.com/user/shop/related/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864 + // https://cdn.myshoptet.com/usr/www.px-monkey.com/user/shop/orig/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864 + (domain === "cdn.myshoptet.com" && /\.px-monkey\.com\//.test(src))) { + // https://www.px-monkey.com/user/shop/related/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864 + // https://www.px-monkey.com/user/shop/orig/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864 + return src.replace(/(\/user\/+shop\/+)(?:related|big)\/+/, "$1orig/"); + } + diff --git a/userscript.user.js b/userscript.user.js index 206940ef..11049a05 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -104712,6 +104712,15 @@ var $$IMU_EXPORT$$; // https://s3.amazonaws.com/media.kompakt.fm/01/assets/releases/original/ext016-pshal_p_shaw.jpg?v=1 return src.replace(/(\/assets\/+releases\/+)fitted\/+/, "$1original/"); } + if (domain_nowww === "px-monkey.com" || + // thanks to fyhtma on github: https://github.com/qsniyg/maxurl/issues/1335 + // http://cdn.myshoptet.com/usr/www.px-monkey.com/user/shop/related/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864 + // https://cdn.myshoptet.com/usr/www.px-monkey.com/user/shop/orig/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864 + (domain === "cdn.myshoptet.com" && /\.px-monkey\.com\//.test(src))) { + // https://www.px-monkey.com/user/shop/related/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864 + // https://www.px-monkey.com/user/shop/orig/13020-1_nam-the-vietnam-experience-1965-1975-vol--1-2.jpg?63efb864 + return src.replace(/(\/user\/+shop\/+)(?:related|big)\/+/, "$1orig/"); + } // -- 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