Skip to content

Commit

Permalink
More websites/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Mar 27, 2024
1 parent 6e3163d commit fe80c24
Show file tree
Hide file tree
Showing 3 changed files with 291 additions and 73 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2023.3.1 (in-dev)

Special thanks to fireattack, nimbuz, Froktime, fyhtma for their contributions and reports for this release
Special thanks to fireattack, nimbuz, Froktime, fyhtma, SakalliTavernaci for their contributions and reports for this release

---

Expand Down
140 changes: 127 additions & 13 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37128,18 +37128,28 @@ var $$IMU_EXPORT$$;
// http://0.t.imgbox.com/eLFM9k0c.jpg
// https://thumbs3.imgbox.com/e4/3f/eLFM9k0c_t.jpg
// https://images3.imgbox.com/e4/3f/eLFM9k0c_o.jpg
let obj = {
url: src
};

let match = src.match(/\/(?:[0-9a-f]{2}\/+){2}([^/_.]+)_([a-z])\./);
if (match) {
if (match[2] === "o")
obj.is_original = true;
obj.extra = {
page: "https://imgbox.com/" + match[1]
};
}

newsrc = src
.replace(/\/thumbs([0-9]*)\.imgbox\.com\//, "/images$1.imgbox.com/")
.replace(/_[a-z](\.[^/.]*)/, "_o$1");
if (newsrc !== src)
return newsrc;

if (/\/(?:[0-9a-f]{2}\/+){2}[^/_.]+_o\./.test(src)) {
return {
url: src,
is_original: true
};
if (newsrc !== src) {
obj.url = newsrc;
return obj;
}

return obj;
}

if (domain_nosub === "imgbox.com" && /^(?:[0-9]+[-.])?t\./.test(domain) && options.do_request && options.cb) {
Expand Down Expand Up @@ -37753,7 +37763,7 @@ var $$IMU_EXPORT$$;

var is_picdomain = false;
var request_domain;
match = domain.match(/^[ui](?:mg)?[0-9]+([a-z]+)?\./);
match = domain.match(/^[uis](?:mg)?[0-9]+([a-z]+)?\./);
if (match) {
is_picdomain = true;
request_domain = domain_nosub;
Expand All @@ -37770,9 +37780,9 @@ var $$IMU_EXPORT$$;
},
query_for_id: "https://${domain}/${id}/${ext}",
process: function(done, resp, cache_key) {
var match = resp.responseText.match(/<a\s+href=["'](https?:\/\/[iu](?:mg)?[0-9]*(?:[a-z]+)?\.[^/]+\/+i\/+.*?)["'][^>]*\sdownload/);
var match = resp.responseText.match(/<a\s+href=["'](https?:\/\/[ius](?:mg)?[0-9]*(?:[a-z]+)?\.[^/]+\/+i\/+.*?)["'][^>]*\sdownload/);
if (!match) {
match = resp.responseText.match(/<p[^>]*>\s*<img\s+src=["'](https?:\/\/[iu](?:mg)?[0-9]*(?:[a-z]+)?\.[^/]+\/+i\/+[^"']+)["'][^>]*\sclass="[^"]*pic[^"]*"/);
match = resp.responseText.match(/<p[^>]*>\s*<img\s+src=["'](https?:\/\/[ius](?:mg)?[0-9]*(?:[a-z]+)?\.[^/]+\/+i\/+[^"']+)["'][^>]*\sclass="[^"]*pic[^"]*"/);
}
if (!match) {
console_error(cache_key, "Unable to find match for", resp);
Expand Down Expand Up @@ -40940,12 +40950,16 @@ var $$IMU_EXPORT$$;
// http://ernstchan.xyz/int/thumb/1608576566-878s.jpg
// http://ernstchan.xyz/int/src/1608576566-878.jpg
domain_nowww === "ernstchan.xyz" ||
// thanks to anonymous for reporting:
// https://neochan.net/mu/thumb/1602874862994-3.jpg
// https://neochan.net/mu/src/1602874862994-3.jpg
domain_nowww === "neochan.net" ||
// http://aqua.komica.org/60/thumb/1509040275477s.jpg
// http://aqua.komica.org/60/src/1509040275477.jpg
domain === "aqua.komica.org") {
// http://ii.yakuji.moe/b/thumb/1534110350035s.jpg
// http://ii.yakuji.moe/b/src/1534110350035.jpg
newsrc = src.replace(/\/thumb\/([0-9]{5,}(?:-[0-9]+)?)s(\.[^/.]*)$/, "/src/$1$2");
newsrc = src.replace(/\/thumb\/([0-9]{5,}(?:-[0-9]+)?)s?(\.[^/.]*)$/, "/src/$1$2");
if (newsrc !== src)
return add_full_extensions(newsrc, ["mp4", "webm", "png", "jpg", "jpeg"]);
}
Expand Down Expand Up @@ -46831,6 +46845,13 @@ var $$IMU_EXPORT$$;
}
}

if (domain_nosub === "jpg.church") {
// thanks to SakalliTavernaci on github for reporting: https://github.com/qsniyg/maxurl/issues/1274#issuecomment-2021611522
// https://simp6.jpg.church/images/testfcc38151209151b9.th.jpg
// https://simp6.host.church/images/testfcc38151209151b9.th.jpg
return src.replace(/(:\/\/(?:[^/]+\.)?)jpg\.church\/+/, "$1host.church/");
}

// chevereto
if (domain_nowww === "imgmax.com" ||
domain_nowww === "404store.com" ||
Expand Down Expand Up @@ -69158,6 +69179,10 @@ var $$IMU_EXPORT$$;
// https://www.sandinyoureye.co.uk/files/gallery/_306x306_crop_Center-Center_80/professional-ice-sculpture_ice-carving_Bradford.jpg
// https://www.sandinyoureye.co.uk/files/gallery/professional-ice-sculpture_ice-carving_Bradford.jpg
domain_nowww === "sandinyoureye.co.uk" ||
// thanks to anonymous for reporting:
// https://skitguys.com/media/images/motion/_400x225_crop_center-center_60_line/Easter-Sunday-1-Still_LSM-HD.jpg
// https://skitguys.com/media/images/motion/Easter-Sunday-1-Still_LSM-HD.jpg
domain_nowww === "skitguys.com" ||
// https://cache.wizardworld.com/files/wizard/_164xAUTO_fit_center-center_100/rampage-trailer-1-feature.png
// https://cache.wizardworld.com/files/wizard/rampage-trailer-1-feature.png
domain === "cache.wizardworld.com") {
Expand Down Expand Up @@ -74264,7 +74289,9 @@ var $$IMU_EXPORT$$;
// thanks to vscum on github: https://github.com/qsniyg/maxurl/issues/1191
// https://www.bunnylust.com/lily-chey-leather-jacket-bad-girl/smallimage1.jpg
// https://www.bunnylust.com/lily-chey-leather-jacket-bad-girl/1.jpg
domain_nowww === "bunnylust.com" ||
// https://cdn.bunnylust.com/lily-chey-leather-jacket-bad-girl/smallimage1.jpg
// https://cdn.bunnylust.com/lily-chey-leather-jacket-bad-girl/1.jpg
domain_nosub === "bunnylust.com" ||
// thanks to vscum on github: https://github.com/qsniyg/maxurl/issues/1191
// https://f2h3f6e6.ssl.hwcdn.net/lily-chey-leather-jacket-bad-girl/smallimage1.jpg
// https://f2h3f6e6.ssl.hwcdn.net/lily-chey-leather-jacket-bad-girl/1.jpg
Expand Down Expand Up @@ -95679,6 +95706,7 @@ var $$IMU_EXPORT$$;
// xfilesharing
if (domain_nowww === "mightyupload.com" ||
domain_nowww === "upstream.to" ||
domain_nowww === "clicknplay.to" ||
// has some custom encryption: https://github.com/vb6rocod/utils/blob/master/servere/tear_js.html (possibly a modification of TEA)
//domain_nowww === "playtube.ws" ||
domain_nowww === "streamsb.net") {
Expand Down Expand Up @@ -95848,6 +95876,44 @@ var $$IMU_EXPORT$$;
if (newsrc) return newsrc;
}

if (domain_nowww === "vidello.net") {
// thanks to anonymous for reporting:
newsrc = website_query({
website_regex: /^[a-z]+:\/\/[^/]+\/+(?:embed-)?([0-9a-z]{5,})\.html(?:[?#].*)?$/,
query_for_id: {
url: "https://" + domain + "/embed-${id}.html",
headers: {
"Referer": "https://dirtyships.net/",
"Sec-Fetch-Dest": "iframe",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-Site": "cross-site"
},
imu_mode: "document"
},
process: function(done, resp, cache_key) {
var unpacked = common_functions["unpack_packer"](resp.responseText);
if (!unpacked) {
console_error(cache_key, "Unable to find packed data for", resp);
return done(null, false);
}

var match = unpacked.match(/sources:\[{src:("[^"]+")/);
if (!match) {
console_error(cache_key, "Unable to find match for", resp, unpacked);
return done(null, false);
}

var videourl = JSON_parse(match[1]);

return done({
url: videourl,
video: "hls"
}, 50*60); // expiry time is 3600
}
});
if (newsrc) return newsrc;
}

if (domain === "static.kritikustomeg.org") {
// https://static.kritikustomeg.org/pix/tn200x1000/5c4/pa_138649_exbcngzm.jpg
// https://static.kritikustomeg.org/pix/orig/5c4/pa_138649_exbcngzm.jpg
Expand Down Expand Up @@ -98198,6 +98264,27 @@ var $$IMU_EXPORT$$;
if (newsrc) return newsrc;
}

if (domain_nowww === "dirtyships.net") {
// thanks to anonymous for reporting:
newsrc = website_query({
website_regex: /^[a-z]+:\/\/[^/]+\/+video\/+([0-9]+)\/+/,
query_for_id: "https://" + domain + "/video/${id}/",
process: function(done, resp, cache_key) {
let match = resp.responseText.match(/<div class=.video-embedded.>\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 @@ -113211,6 +113298,33 @@ var $$IMU_EXPORT$$;
return src.replace(/(:\/\/[^/]+\/+_\/+[^/]+\/+)_(?:fit|resize)\/+[0-9]+\/+[0-9]+\/+/, "$1_raw/");
}

if (domain_nosub === "photobiz.com" && /^image[0-9]*\./.test(domain)) {
// thanks to anonymous for reporting:
// https://image14.photobiz.com/10152/29_20230316093412_7400470_small.jpg
// https://image14.photobiz.com/10152/29_20230316093412_7400470_xlarge.jpg
// other:
// https://image5.photobiz.com/8910/20201203103456_328317.jpg -- 3000x2067
// https://image13.photobiz.com/10309/20210908161325_357316.PNG -- 4096x2730
// https://image12.photobiz.com/6406/20200810091614_317566.jpg -- 2667x2667
return src.replace(/_(?:small|large)(\.[^/.]+)(?:[?#].*)?$/, "_xlarge$1");
}

if (domain === "media.imagepost.com") {
// thanks to anonymous for reporting:
// https://media.imagepost.com/net_girl/ellie_returns_on_net_girl_b6aba6/3-thumb.jpg
// https://media.imagepost.com/net_girl/ellie_returns_on_net_girl_b6aba6/3.jpg
return src.replace(/-thumb(\.[^/.]+)(?:[?#].*)?$/, "$1");
}

if (domain === "cdn.viewing.nyc") {
// thanks to anonymous for reporting:
// https://cdn.viewing.nyc/assets/media/9bca633fc54bc0ef9dd0dfccf087c99e/elements/57c322b96d46ed5681859b4ecd1e0a70/xl/49ba65e7-1a4d-4114-800b-62e0450480b5_2x.jpg -- upscaled
// https://cdn.viewing.nyc/assets/media/9bca633fc54bc0ef9dd0dfccf087c99e/elements/57c322b96d46ed5681859b4ecd1e0a70/49ba65e7-1a4d-4114-800b-62e0450480b5.jpg
// https://cdn.viewing.nyc/assets/media/e9ddb205f5e1cda2b59e0ab5051f027a/elements/d2133844dada56490a0ec62ad98cb04b/xl/1f2c8d5c-f3f7-4617-b76a-a2149426d2fa_2x.jpg
// https://cdn.viewing.nyc/assets/media/e9ddb205f5e1cda2b59e0ab5051f027a/elements/d2133844dada56490a0ec62ad98cb04b/1f2c8d5c-f3f7-4617-b76a-a2149426d2fa.jpg -- 6000x4000
return src.replace(/(\/assets\/+media\/+[0-9a-f]+\/+elements\/+[0-9a-f]+\/+)[a-z]+\/+([-0-9a-f]+)(?:_[0-9]+x)?\./, "$1$2.");
}




Expand Down
Loading

0 comments on commit fe80c24

Please sign in to comment.