Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Nov 10, 2024
1 parent 07c76de commit 55e77f3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
21 changes: 19 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50939,15 +50939,25 @@ var $$IMU_EXPORT$$;
// https://cdn.elitebabes.com/content/200905/0002-01_1200.jpg
// https://cdn.elitebabes.com/content/200905/0002-01.jpg
domain === "cdn.elitebabes.com" ||
// thanks to anonymous for reporting:
// https://cdn.metarthunter.com/content/231257/0010-01_w400.jpg
// https://cdn.metarthunter.com/content/231257/0010-01_1200.jpg
domain === "cdn.metarthunter.com" ||
// https://c9w8v3m5.ssl.hwcdn.net/content/130305/bree-glamorous-01_w400.jpg
// https://c9w8v3m5.ssl.hwcdn.net/content/130305/bree-glamorous-01.jpg
domain === "c9w8v3m5.ssl.hwcdn.net") {
// https://k5x5n5g8.ssl.hwcdn.net/content/181035/0013-03_w400.jpg
// https://k5x5n5g8.ssl.hwcdn.net/content/181035/0013-03.jpg
newsrc = src.replace(/(\/content\/+[0-9]+\/+[^/]+-[0-9]+)_(?:[wh][0-9]+|1200)(\.[^/.]*)(?:[?#].*)?$/,
"$1$2");
if (newsrc !== src)
return newsrc;
if (newsrc !== src) {
return {
url: newsrc,
headers: {
Referer: "https://" + domain_nosub + "/"
}
};
}
}

if (domain_nowww === "xjapanese.com") {
Expand Down Expand Up @@ -117198,6 +117208,13 @@ var $$IMU_EXPORT$$;
};
}

if (domain_nowww === "thepeninsulaqatar.com") {
// thanks to anonymous for reporting:
// https://thepeninsulaqatar.com/get/image/20241109_1731135227-619-thumb_big_590.jpg
// https://thepeninsulaqatar.com/get/maximage/20241109_1731135227-619.jpg
return src.replace(/(\/get\/+)image\/+([^/?#]+)-thumb_[^/.?#]+\./, "$1maximage/$2.");
}




Expand Down
20 changes: 18 additions & 2 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -46564,14 +46564,24 @@ var $$IMU_EXPORT$$;
// https://cdn.elitebabes.com/content/200905/0002-01_1200.jpg
// https://cdn.elitebabes.com/content/200905/0002-01.jpg
domain === "cdn.elitebabes.com" ||
// thanks to anonymous for reporting:
// https://cdn.metarthunter.com/content/231257/0010-01_w400.jpg
// https://cdn.metarthunter.com/content/231257/0010-01_1200.jpg
domain === "cdn.metarthunter.com" ||
// https://c9w8v3m5.ssl.hwcdn.net/content/130305/bree-glamorous-01_w400.jpg
// https://c9w8v3m5.ssl.hwcdn.net/content/130305/bree-glamorous-01.jpg
domain === "c9w8v3m5.ssl.hwcdn.net") {
// https://k5x5n5g8.ssl.hwcdn.net/content/181035/0013-03_w400.jpg
// https://k5x5n5g8.ssl.hwcdn.net/content/181035/0013-03.jpg
newsrc = src.replace(/(\/content\/+[0-9]+\/+[^/]+-[0-9]+)_(?:[wh][0-9]+|1200)(\.[^/.]*)(?:[?#].*)?$/, "$1$2");
if (newsrc !== src)
return newsrc;
if (newsrc !== src) {
return {
url: newsrc,
headers: {
Referer: "https://" + domain_nosub + "/"
}
};
}
}
if (domain_nowww === "xjapanese.com") {
// https://xjapanese.com/pornpics/azusa-misaki/bgg00003/azusa-misaki-12-pin.jpg
Expand Down Expand Up @@ -105334,6 +105344,12 @@ var $$IMU_EXPORT$$;
can_head: false // 403
};
}
if (domain_nowww === "thepeninsulaqatar.com") {
// thanks to anonymous for reporting:
// https://thepeninsulaqatar.com/get/image/20241109_1731135227-619-thumb_big_590.jpg
// https://thepeninsulaqatar.com/get/maximage/20241109_1731135227-619.jpg
return src.replace(/(\/get\/+)image\/+([^/?#]+)-thumb_[^/.?#]+\./, "$1maximage/$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 55e77f3

Please sign in to comment.