From 054ef63db42f5e0d8738fa643b18287d28b10486 Mon Sep 17 00:00:00 2001 From: qsniyg Date: Sun, 17 Sep 2023 05:57:37 +0000 Subject: [PATCH] More websites/rules --- src/userscript.ts | 30 ++++++++++++++++++++++++++++++ userscript.user.js | 26 ++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/src/userscript.ts b/src/userscript.ts index a1b7d79c..51c2bee0 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -107743,6 +107743,36 @@ var $$IMU_EXPORT$$; } } + if (domain_nowww === "dilvin.com.tr" || + // https://kvyfm6d9dll6.merlincdn.net/productimages/126913/big/101a90155_lacivert.jpg + // https://kvyfm6d9dll6.merlincdn.net/productimages/126913/original/101a90155_lacivert.jpg + domain === "kvyfm6d9dll6.merlincdn.net") { + // https://www.dilvin.com.tr/productimages/126913/big/101a90155_lacivert.jpg + // https://www.dilvin.com.tr/productimages/126913/original/101a90155_lacivert.jpg + return src.replace(/(\/productimages\/+[0-9]+\/+)[a-z]+\/+/, "$1original/"); + } + + if (domain_nowww === "evbazaaravm.com") { + // https://www.evbazaaravm.com/public/assets/images/products/thumb/apple-iphone-14-pro-128gb-gumus-cep-telefonu-mq023tu-a-apple-turkiye-garantili-63d55d961510a.webp + // https://www.evbazaaravm.com/public/assets/images/products/large/apple-iphone-14-pro-128gb-gumus-cep-telefonu-mq023tu-a-apple-turkiye-garantili-63d55d961510a.webp + return src.replace(/(\/assets\/+images\/+products\/+)thumb\/+/, "$1large/"); + } + + if (domain === "ffo3gv1cf3ir.merlincdn.net") { + // https://ffo3gv1cf3ir.merlincdn.net/SiteAssets/pasaj/crop/cg/1663938988851/1-1663938977442/1-1663938977442_250x188.png?1773534948063 + // https://ffo3gv1cf3ir.merlincdn.net/SiteAssets/pasaj/crop/cg/1663938988851/1-1663938977442.png + return { + url: src.replace(/(\/SiteAssets\/.*\/crop\/+cg\/+[^/]+\/+[0-9]+-[0-9]+)\/+[^/.]+(\.[a-z]+)(?:[?#].*)?$/, "$1$2"), + head_wrong_contenttype: true // text/html + }; + } + + if (domain === "qpzgjzffeg4d.merlincdn.net") { + // https://qpzgjzffeg4d.merlincdn.net/i/s/007/0073111.jpeg + // https://qpzgjzffeg4d.merlincdn.net/i/l/007/0073111.jpeg + return src.replace(/(\/i\/+)[sm](\/+[0-9]+\/+)/, "$1l$2"); + } + diff --git a/userscript.user.js b/userscript.user.js index 09787cf2..7af31588 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -96622,6 +96622,32 @@ var $$IMU_EXPORT$$; return "https://tweakers.net/ext" + match[1]; } } + if (domain_nowww === "dilvin.com.tr" || + // https://kvyfm6d9dll6.merlincdn.net/productimages/126913/big/101a90155_lacivert.jpg + // https://kvyfm6d9dll6.merlincdn.net/productimages/126913/original/101a90155_lacivert.jpg + domain === "kvyfm6d9dll6.merlincdn.net") { + // https://www.dilvin.com.tr/productimages/126913/big/101a90155_lacivert.jpg + // https://www.dilvin.com.tr/productimages/126913/original/101a90155_lacivert.jpg + return src.replace(/(\/productimages\/+[0-9]+\/+)[a-z]+\/+/, "$1original/"); + } + if (domain_nowww === "evbazaaravm.com") { + // https://www.evbazaaravm.com/public/assets/images/products/thumb/apple-iphone-14-pro-128gb-gumus-cep-telefonu-mq023tu-a-apple-turkiye-garantili-63d55d961510a.webp + // https://www.evbazaaravm.com/public/assets/images/products/large/apple-iphone-14-pro-128gb-gumus-cep-telefonu-mq023tu-a-apple-turkiye-garantili-63d55d961510a.webp + return src.replace(/(\/assets\/+images\/+products\/+)thumb\/+/, "$1large/"); + } + if (domain === "ffo3gv1cf3ir.merlincdn.net") { + // https://ffo3gv1cf3ir.merlincdn.net/SiteAssets/pasaj/crop/cg/1663938988851/1-1663938977442/1-1663938977442_250x188.png?1773534948063 + // https://ffo3gv1cf3ir.merlincdn.net/SiteAssets/pasaj/crop/cg/1663938988851/1-1663938977442.png + return { + url: src.replace(/(\/SiteAssets\/.*\/crop\/+cg\/+[^/]+\/+[0-9]+-[0-9]+)\/+[^/.]+(\.[a-z]+)(?:[?#].*)?$/, "$1$2"), + head_wrong_contenttype: true // text/html + }; + } + if (domain === "qpzgjzffeg4d.merlincdn.net") { + // https://qpzgjzffeg4d.merlincdn.net/i/s/007/0073111.jpeg + // https://qpzgjzffeg4d.merlincdn.net/i/l/007/0073111.jpeg + return src.replace(/(\/i\/+)[sm](\/+[0-9]+\/+)/, "$1l$2"); + } // -- 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