Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Dec 1, 2024
1 parent 177586e commit b0a51b9
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 8 deletions.
61 changes: 57 additions & 4 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50240,7 +50240,11 @@ var $$IMU_EXPORT$$;
// http://flyhighstore.pl/2210-home_default/fh-cool-red-winter-jacket.jpg
// http://flyhighstore.pl/2210/fh-cool-red-winter-jacket.jpg
domain_nowww === "flyhighstore.pl" ||
/^[a-z]+:\/\/[^/]+\/+[0-9]+-(?:home|large|thickbox)_default\/+[^/.]+\.jpg(?:[?#].*)?$/.test(src)) {
// thanks to anonymous for reporting:
// https://www.sublimet.com/12604-large_default/serviettes-microfibre-cotton-sublimation.webp
// https://www.sublimet.com/12604/serviettes-microfibre-cotton-sublimation.webp
domain_nowww === "sublimet.com" ||
/^[a-z]+:\/\/[^/]+\/+[0-9]+-(?:home|large|thickbox)_default\/+[^/.]+\.(?:jpg|webp)(?:[?#].*)?$/.test(src)) {
// https://www.tiarashop.eu/3412-home_default/o.jpg
// https://www.tiarashop.eu/3412/o.jpg
newsrc = src.replace(/(\/img\/+p\/+(?:[0-9]\/+){1,}[0-9]+)[-_][^/.]*(\.[^/.]*)$/, "$1$2");
Expand Down Expand Up @@ -64106,6 +64110,7 @@ var $$IMU_EXPORT$$;
domain_nosub === "porntrex.com" ||
domain_nosub === "cdntrex.com" ||
domain_nowww === "alphavids.cc" ||
domain_nowww === "pornmega.com" ||
// different system
// https://static2.tubepornclassic.com/contents/videos_screenshots/1051000/1051741/240x180/1.jpg
//domain_nosub === "tubepornclassic.com" ||
Expand Down Expand Up @@ -100186,7 +100191,8 @@ var $$IMU_EXPORT$$;
if (domain_nowww === "dood.to" ||
domain_nowww === "doods.pro" ||
domain_nowww === "ds2play.com" ||
domain_nowww === "do0od.com") {
domain_nowww === "do0od.com" ||
domain_nowww === "doodstream.com") {
newsrc = website_query({
website_regex: /^[a-z]+:\/\/[^/]+\/+[de]\/+([0-9a-z]{10,})\/*(?:[?#].*)?$/,
query_for_id: function(id) {
Expand Down Expand Up @@ -100677,6 +100683,28 @@ var $$IMU_EXPORT$$;
if (newsrc) return newsrc;
}

if (domain_nowww === "hdpornflix.com" ||
domain_nowww === "pornstreams.co") {
// thanks to anonymous for reporting:
newsrc = website_query({
website_regex: /^[a-z]+:\/\/[^/]+\/+([^/]+)\/*(?:[?#].*)?$/,
query_for_id: "https://" + domain + "/${id}/",
process: function(done, resp, cache_key) {
let match = resp.responseText.match(/<div class=.responsive-player.>\s*<iframe[^>]*src="(https?:\/\/[^"]+)"/);
if (!match) {
console_error(cache_key, "Unable to find iframe match for", resp);
return done(null, false);
}

return done({
url: decode_entities(match[1]),
is_pagelink: true
}, 6*60*60);
}
});
if (newsrc) return newsrc;
}

if (domain === "cdn.17app.co") {
// https://cdn.17app.co/THUMBNAIL_DDAB5683-917F-48FD-BE96-DC80838E7752.jpg
// https://cdn.17app.co/DDAB5683-917F-48FD-BE96-DC80838E7752.jpg
Expand Down Expand Up @@ -106864,8 +106892,8 @@ var $$IMU_EXPORT$$;
if (domain_nowww === "playvids.com") {
newsrc = website_query({
website_regex: [
/^[a-z]+:\/\/[^/]+\/+([0-9a-zA-Z]{10,12})\/+/,
/^[a-z]+:\/\/[^/]+\/+embed\/+([0-9a-zA-Z]{10,12})(?:[?#].*)?$/
/^[a-z]+:\/\/[^/]+\/+([0-9a-zA-Z_]{10,12})\/+/,
/^[a-z]+:\/\/[^/]+\/+embed\/+([0-9a-zA-Z_]{10,12})(?:[?#].*)?$/
],
query_for_id: "https://www.playvids.com/embed/${id}",
process: function(done, resp, cache_key) {
Expand Down Expand Up @@ -111353,6 +111381,10 @@ var $$IMU_EXPORT$$;
// https://www.estadao.com.br/resizer/v2/CGTWQPIB2RGGXKG6ABE74R2VFY.jpg?quality=80&auth=9024e28b84d92ec28de196e743cb353157a40e99ce5891e900469b519854444b&width=360&height=202&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/estadao/CGTWQPIB2RGGXKG6ABE74R2VFY.jpg
domain_nowww === "estadao.com.br" ||
// thanks to anonymous for reporting:
// https://www.irishnews.com/resizer/v2/VLCFZ6K2KNLSFASOFLP5ELPX24.jpg?auth=1c8c4abb9b9fe1046ea4071c63b4085fe28e599cc37414dedc5aa515d3dd224c&width=1440&height=959
// https://cloudfront-eu-central-1.images.arcpublishing.com/irishnews/VLCFZ6K2KNLSFASOFLP5ELPX24.jpg
domain_nowww === "irishnews.com" ||
// thanks to roi:
// https://www.theglobeandmail.com/resizer/v2/MIMBGW3UORBLZMMTL2GASZ75JE.JPG?auth=c570680e25c89027c795085ce398d06291485e026f2830e996db3e2d9a71d3d8&width=900&quality=80
// https://cloudfront-us-east-1.images.arcpublishing.com/tgam/MIMBGW3UORBLZMMTL2GASZ75JE.JPG
Expand Down Expand Up @@ -111391,6 +111423,8 @@ var $$IMU_EXPORT$$;
info = {folder: "lanacionar", loc: "us-east-1"};
else if (domain_nowww === "estadao.com.br")
info = {folder: "estadao", loc: "us-east-1"};
else if (domain_nowww === "irishnews.com")
info = {folder: "irishnews", loc: "eu-central-1"};

newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+resizer\/+v2\/+([^?#/]+)(?:[?#].*)?$/, "https://cloudfront-" + info.loc + ".images.arcpublishing.com/" + info.folder + "/$1");
if (newsrc !== src)
Expand Down Expand Up @@ -117522,6 +117556,25 @@ var $$IMU_EXPORT$$;
return src.replace(/^[a-z]+:\/\/[^/]+\/+.*(\/storage\/)/, "https://i.elele.com.tr$1");
}

if (domain === "media-cdn.erohive.com" ||
// https://cdn.erocdn.co/[hex],[timestamp]/[...]/image/[.]/[.]/[...]/thumb.webp
// https://cdn.erocdn.co/[hex],[timestamp]/[...]/image/[.]/[.]/[...]/media.webp
domain === "cdn.erocdn.co") {
// thanks to anonymous for reporting:
// https://media-cdn.erohive.com/[...],[...]/s/image/[...]/thumb.webp
return src.replace(/(:\/\/[^/]+\/+[^/]+\/+[^/]+\/+image)\/+(.*?\/+)thumb\./, "$1/$2media.");
}

if (domain === "t.prcdn.co") {
// thanks to anonymous for reporting:
// https://t.prcdn.co/img?file=36532024112700000000001001&page=62&scale=99 -- 617x805
// https://t.prcdn.co/img?file=36532024112700000000001001&page=62 -- 623x813
// https://t.prcdn.co/img?file=36532024112700000000001001&page=63&scale=39
// https://t.prcdn.co/img?file=36532024112700000000001001&page=63 -- 623x813
if (/\/img\?(?:.*&)?file=[0-9]+/.test(src))
return remove_queries(src, ["scale"]);
}




Expand Down
58 changes: 54 additions & 4 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -45927,7 +45927,11 @@ var $$IMU_EXPORT$$;
// http://flyhighstore.pl/2210-home_default/fh-cool-red-winter-jacket.jpg
// http://flyhighstore.pl/2210/fh-cool-red-winter-jacket.jpg
domain_nowww === "flyhighstore.pl" ||
/^[a-z]+:\/\/[^/]+\/+[0-9]+-(?:home|large|thickbox)_default\/+[^/.]+\.jpg(?:[?#].*)?$/.test(src)) {
// thanks to anonymous for reporting:
// https://www.sublimet.com/12604-large_default/serviettes-microfibre-cotton-sublimation.webp
// https://www.sublimet.com/12604/serviettes-microfibre-cotton-sublimation.webp
domain_nowww === "sublimet.com" ||
/^[a-z]+:\/\/[^/]+\/+[0-9]+-(?:home|large|thickbox)_default\/+[^/.]+\.(?:jpg|webp)(?:[?#].*)?$/.test(src)) {
// https://www.tiarashop.eu/3412-home_default/o.jpg
// https://www.tiarashop.eu/3412/o.jpg
newsrc = src.replace(/(\/img\/+p\/+(?:[0-9]\/+){1,}[0-9]+)[-_][^/.]*(\.[^/.]*)$/, "$1$2");
Expand Down Expand Up @@ -58311,6 +58315,7 @@ var $$IMU_EXPORT$$;
domain_nosub === "porntrex.com" ||
domain_nosub === "cdntrex.com" ||
domain_nowww === "alphavids.cc" ||
domain_nowww === "pornmega.com" ||
// different system
// https://static2.tubepornclassic.com/contents/videos_screenshots/1051000/1051741/240x180/1.jpg
//domain_nosub === "tubepornclassic.com" ||
Expand Down Expand Up @@ -90074,7 +90079,8 @@ var $$IMU_EXPORT$$;
if (domain_nowww === "dood.to" ||
domain_nowww === "doods.pro" ||
domain_nowww === "ds2play.com" ||
domain_nowww === "do0od.com") {
domain_nowww === "do0od.com" ||
domain_nowww === "doodstream.com") {
newsrc = website_query({
website_regex: /^[a-z]+:\/\/[^/]+\/+[de]\/+([0-9a-z]{10,})\/*(?:[?#].*)?$/,
query_for_id: function(id) {
Expand Down Expand Up @@ -90507,6 +90513,27 @@ var $$IMU_EXPORT$$;
if (newsrc)
return newsrc;
}
if (domain_nowww === "hdpornflix.com" ||
domain_nowww === "pornstreams.co") {
// thanks to anonymous for reporting:
newsrc = website_query({
website_regex: /^[a-z]+:\/\/[^/]+\/+([^/]+)\/*(?:[?#].*)?$/,
query_for_id: "https://" + domain + "/${id}/",
process: function(done, resp, cache_key) {
var match = resp.responseText.match(/<div class=.responsive-player.>\s*<iframe[^>]*src="(https?:\/\/[^"]+)"/);
if (!match) {
console_error(cache_key, "Unable to find iframe match for", resp);
return done(null, false);
}
return done({
url: decode_entities(match[1]),
is_pagelink: true
}, 6 * 60 * 60);
}
});
if (newsrc)
return newsrc;
}
if (domain === "cdn.17app.co") {
// https://cdn.17app.co/THUMBNAIL_DDAB5683-917F-48FD-BE96-DC80838E7752.jpg
// https://cdn.17app.co/DDAB5683-917F-48FD-BE96-DC80838E7752.jpg
Expand Down Expand Up @@ -96041,8 +96068,8 @@ var $$IMU_EXPORT$$;
if (domain_nowww === "playvids.com") {
newsrc = website_query({
website_regex: [
/^[a-z]+:\/\/[^/]+\/+([0-9a-zA-Z]{10,12})\/+/,
/^[a-z]+:\/\/[^/]+\/+embed\/+([0-9a-zA-Z]{10,12})(?:[?#].*)?$/
/^[a-z]+:\/\/[^/]+\/+([0-9a-zA-Z_]{10,12})\/+/,
/^[a-z]+:\/\/[^/]+\/+embed\/+([0-9a-zA-Z_]{10,12})(?:[?#].*)?$/
],
query_for_id: "https://www.playvids.com/embed/${id}",
process: function(done, resp, cache_key) {
Expand Down Expand Up @@ -100115,6 +100142,10 @@ var $$IMU_EXPORT$$;
// https://www.estadao.com.br/resizer/v2/CGTWQPIB2RGGXKG6ABE74R2VFY.jpg?quality=80&auth=9024e28b84d92ec28de196e743cb353157a40e99ce5891e900469b519854444b&width=360&height=202&smart=true
// https://cloudfront-us-east-1.images.arcpublishing.com/estadao/CGTWQPIB2RGGXKG6ABE74R2VFY.jpg
domain_nowww === "estadao.com.br" ||
// thanks to anonymous for reporting:
// https://www.irishnews.com/resizer/v2/VLCFZ6K2KNLSFASOFLP5ELPX24.jpg?auth=1c8c4abb9b9fe1046ea4071c63b4085fe28e599cc37414dedc5aa515d3dd224c&width=1440&height=959
// https://cloudfront-eu-central-1.images.arcpublishing.com/irishnews/VLCFZ6K2KNLSFASOFLP5ELPX24.jpg
domain_nowww === "irishnews.com" ||
// thanks to roi:
// https://www.theglobeandmail.com/resizer/v2/MIMBGW3UORBLZMMTL2GASZ75JE.JPG?auth=c570680e25c89027c795085ce398d06291485e026f2830e996db3e2d9a71d3d8&width=900&quality=80
// https://cloudfront-us-east-1.images.arcpublishing.com/tgam/MIMBGW3UORBLZMMTL2GASZ75JE.JPG
Expand Down Expand Up @@ -100152,6 +100183,8 @@ var $$IMU_EXPORT$$;
info_1 = { folder: "lanacionar", loc: "us-east-1" };
else if (domain_nowww === "estadao.com.br")
info_1 = { folder: "estadao", loc: "us-east-1" };
else if (domain_nowww === "irishnews.com")
info_1 = { folder: "irishnews", loc: "eu-central-1" };
newsrc = src.replace(/^[a-z]+:\/\/[^/]+\/+resizer\/+v2\/+([^?#/]+)(?:[?#].*)?$/, "https://cloudfront-" + info_1.loc + ".images.arcpublishing.com/" + info_1.folder + "/$1");
if (newsrc !== src)
return newsrc;
Expand Down Expand Up @@ -105612,6 +105645,23 @@ var $$IMU_EXPORT$$;
// https://i.elele.com.tr/storage/files/images/2023/11/28/hazal-subasi4-q3rp.jpg
return src.replace(/^[a-z]+:\/\/[^/]+\/+.*(\/storage\/)/, "https://i.elele.com.tr$1");
}
if (domain === "media-cdn.erohive.com" ||
// https://cdn.erocdn.co/[hex],[timestamp]/[...]/image/[.]/[.]/[...]/thumb.webp
// https://cdn.erocdn.co/[hex],[timestamp]/[...]/image/[.]/[.]/[...]/media.webp
domain === "cdn.erocdn.co") {
// thanks to anonymous for reporting:
// https://media-cdn.erohive.com/[...],[...]/s/image/[...]/thumb.webp
return src.replace(/(:\/\/[^/]+\/+[^/]+\/+[^/]+\/+image)\/+(.*?\/+)thumb\./, "$1/$2media.");
}
if (domain === "t.prcdn.co") {
// thanks to anonymous for reporting:
// https://t.prcdn.co/img?file=36532024112700000000001001&page=62&scale=99 -- 617x805
// https://t.prcdn.co/img?file=36532024112700000000001001&page=62 -- 623x813
// https://t.prcdn.co/img?file=36532024112700000000001001&page=63&scale=39
// https://t.prcdn.co/img?file=36532024112700000000001001&page=63 -- 623x813
if (/\/img\?(?:.*&)?file=[0-9]+/.test(src))
return remove_queries(src, ["scale"]);
}
// -- 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 b0a51b9

Please sign in to comment.