From 5f7964d80f1613cafd3936d584ce8b624191dbae Mon Sep 17 00:00:00 2001 From: qsniyg Date: Thu, 8 Feb 2024 20:10:23 +0000 Subject: [PATCH] More websites/rules --- CHANGELOG.txt | 2 +- src/userscript.ts | 21 +++++++++++++++++++++ userscript.user.js | 19 +++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9d244c01..827c033c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,6 @@ 2024.2.1 (in-dev) -Special thanks to rEnr3n, beeznutsonly for their contributions and reports for this release +Special thanks to rEnr3n, beeznutsonly, f2005 for their contributions and reports for this release --- diff --git a/src/userscript.ts b/src/userscript.ts index 6abee1ce..c51f61ca 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -80958,6 +80958,9 @@ var $$IMU_EXPORT$$; } if (domain === "i.ryt9.com" || + // https://ip.kolonmall.com/750x/https://images.kolonmall.com/cms/brandCollect/2023/08/bw-0356-copy-53a40f18-1b21-4dbb-b067-0c89a45c081b.jpg + // https://images.kolonmall.com/cms/brandCollect/2023/08/bw-0356-copy-53a40f18-1b21-4dbb-b067-0c89a45c081b.jpg + domain === "ip.kolonmall.com" || // https://imageproxy.haaartland.com/1000x/https://m2.nsimg.net/media/8/5/5/8551503.jpg // https://m2.nsimg.net/media/8/5/5/8551503.jpg domain === "imageproxy.haaartland.com") { @@ -112074,6 +112077,24 @@ var $$IMU_EXPORT$$; .replace(/(\/images\/+)(?:thumb(?:nail)?|high|hd)\/+/, "$1hd4/"); } + if (domain === "images.kolonmall.com") { + // thanks to f2005 on discord: + // https://images.kolonmall.com/Prod_Img/CR/2024/LM25/RCBTX24153BRD_LM25.jpg + // https://images.kolonmall.com/Prod_Img/CR/2024/LZ25/RCBTX24153BRD_LZ25.jpg -- 1500x2250 + // https://images.kolonmall.com/Prod_Img/CO/2023/LS1/ZIJAW23001GYD_LS1.jpg -- 1500x2250 + // https://images.kolonmall.com/Prod_Img/CO/2023/LZ1/ZIJAW23001GYD_LZ1.jpg -- 1500x2250 + // https://images.kolonmall.com/Prod_Img/LC/2024/LM5/LXEAM24860XXX_LM5.jpg + // https://images.kolonmall.com/Prod_Img/LC/2024/LZ5/LXEAM24860XXX_LZ5.jpg + return src.replace(/(\/Prod_Img\/+[^/]+\/+[0-9]{4}\/+L)[SML]([0-9]+\/+[^/]+_L)[SML]([0-9]+\.)/, "$1Z$2Z$3"); + } + + if (domain_nowww === "lookandlearn.com") { + // thanks to anonymous for reporting: + // https://www.lookandlearn.com/history-images/thumbnail/YSA/YSA004/YSA004505.jpg + // https://www.lookandlearn.com/history-images/preview/YSA/YSA004/YSA004505.jpg + return src.replace(/(\/history-images\/+)thumbnail\/+/, "$1preview/"); + } + diff --git a/userscript.user.js b/userscript.user.js index 62ef623b..7ebe5686 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -72999,6 +72999,9 @@ var $$IMU_EXPORT$$; return src.replace(/\/media\/+resized\/+[^/]*\/+/, "/media/"); } if (domain === "i.ryt9.com" || + // https://ip.kolonmall.com/750x/https://images.kolonmall.com/cms/brandCollect/2023/08/bw-0356-copy-53a40f18-1b21-4dbb-b067-0c89a45c081b.jpg + // https://images.kolonmall.com/cms/brandCollect/2023/08/bw-0356-copy-53a40f18-1b21-4dbb-b067-0c89a45c081b.jpg + domain === "ip.kolonmall.com" || // https://imageproxy.haaartland.com/1000x/https://m2.nsimg.net/media/8/5/5/8551503.jpg // https://m2.nsimg.net/media/8/5/5/8551503.jpg domain === "imageproxy.haaartland.com") { @@ -100595,6 +100598,22 @@ var $$IMU_EXPORT$$; .replace(/(\/images\/+hd4\/+[^/]+)\.webp(?:[?#].*)?$/, "$1.jpg") .replace(/(\/images\/+)(?:thumb(?:nail)?|high|hd)\/+/, "$1hd4/"); } + if (domain === "images.kolonmall.com") { + // thanks to f2005 on discord: + // https://images.kolonmall.com/Prod_Img/CR/2024/LM25/RCBTX24153BRD_LM25.jpg + // https://images.kolonmall.com/Prod_Img/CR/2024/LZ25/RCBTX24153BRD_LZ25.jpg -- 1500x2250 + // https://images.kolonmall.com/Prod_Img/CO/2023/LS1/ZIJAW23001GYD_LS1.jpg -- 1500x2250 + // https://images.kolonmall.com/Prod_Img/CO/2023/LZ1/ZIJAW23001GYD_LZ1.jpg -- 1500x2250 + // https://images.kolonmall.com/Prod_Img/LC/2024/LM5/LXEAM24860XXX_LM5.jpg + // https://images.kolonmall.com/Prod_Img/LC/2024/LZ5/LXEAM24860XXX_LZ5.jpg + return src.replace(/(\/Prod_Img\/+[^/]+\/+[0-9]{4}\/+L)[SML]([0-9]+\/+[^/]+_L)[SML]([0-9]+\.)/, "$1Z$2Z$3"); + } + if (domain_nowww === "lookandlearn.com") { + // thanks to anonymous for reporting: + // https://www.lookandlearn.com/history-images/thumbnail/YSA/YSA004/YSA004505.jpg + // https://www.lookandlearn.com/history-images/preview/YSA/YSA004/YSA004505.jpg + return src.replace(/(\/history-images\/+)thumbnail\/+/, "$1preview/"); + } // -- 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