Skip to content

Commit

Permalink
Support rtl.hr (fixes #1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Sep 21, 2024
1 parent 355f834 commit 3a1a0c5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Improvements:

* Various improvements/fixes to existing rules (including YouTube)

Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab, sn3akyb3ar for their contributions and reports for this release
Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab, sn3akyb3ar, ValiumBear for their contributions and reports for this release

---

Expand Down
8 changes: 6 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41324,7 +41324,7 @@ var $$IMU_EXPORT$$;
run: function(cb, match) {
common_functions["imgur_fetch_album_media"](options, api_cache, "image", match[1], function(data) {
if (!data)
return cb(null);
return cb("https://i.imgur.com/" + match[1] + ".jpg");

var baseobj = {
extra: {
Expand Down Expand Up @@ -41380,7 +41380,7 @@ var $$IMU_EXPORT$$;
var baseobj:BigImageInfoSObject = {
url: src.replace(/\?.*/, ""),
headers: {
Referer: null
Referer: "https://www.reddit.com/" // overrides bandwidth limitations
},
referer_ok: {
same_domain_nosub: true
Expand Down Expand Up @@ -50725,6 +50725,10 @@ var $$IMU_EXPORT$$;
// https://image.stirileprotv.ro/media/images/680xX/Sep2016/61836926.jpg
// https://image.stirileprotv.ro/media/images/original/Sep2016/61836926.jpg
domain === "image.stirileprotv.ro" ||
// thanks to ValiumBear on github: https://github.com/qsniyg/maxurl/issues/1367
// https://images.rtl.hr/media/images/822x468/Nov2022/c755032ed5a7494a17e8_47733.jpg?v=5470
// https://images.rtl.hr/media/images/original/Nov2022/c755032ed5a7494a17e8_47733.jpg
domain === "images.rtl.hr" ||
// http://ns.hitcreative.com.s3.amazonaws.com/media/images/640x960/651.jpg
// http://ns.hitcreative.com.s3.amazonaws.com/media/images/original/651.jpg
amazon_container === "ns.hitcreative.com") {
Expand Down
8 changes: 6 additions & 2 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -37868,7 +37868,7 @@ var $$IMU_EXPORT$$;
run: function(cb, match) {
common_functions["imgur_fetch_album_media"](options, api_cache, "image", match[1], function(data) {
if (!data)
return cb(null);
return cb("https://i.imgur.com/" + match[1] + ".jpg");
var baseobj = {
extra: {
page: data.url,
Expand Down Expand Up @@ -37916,7 +37916,7 @@ var $$IMU_EXPORT$$;
var baseobj = {
url: src.replace(/\?.*/, ""),
headers: {
Referer: null
Referer: "https://www.reddit.com/" // overrides bandwidth limitations
},
referer_ok: {
same_domain_nosub: true
Expand Down Expand Up @@ -46364,6 +46364,10 @@ var $$IMU_EXPORT$$;
// https://image.stirileprotv.ro/media/images/680xX/Sep2016/61836926.jpg
// https://image.stirileprotv.ro/media/images/original/Sep2016/61836926.jpg
domain === "image.stirileprotv.ro" ||
// thanks to ValiumBear on github: https://github.com/qsniyg/maxurl/issues/1367
// https://images.rtl.hr/media/images/822x468/Nov2022/c755032ed5a7494a17e8_47733.jpg?v=5470
// https://images.rtl.hr/media/images/original/Nov2022/c755032ed5a7494a17e8_47733.jpg
domain === "images.rtl.hr" ||
// http://ns.hitcreative.com.s3.amazonaws.com/media/images/640x960/651.jpg
// http://ns.hitcreative.com.s3.amazonaws.com/media/images/original/651.jpg
amazon_container === "ns.hitcreative.com") {
Expand Down

0 comments on commit 3a1a0c5

Please sign in to comment.