Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Sep 17, 2023
1 parent 62448fa commit 054ef63
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}




Expand Down
26 changes: 26 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 054ef63

Please sign in to comment.