Skip to content

Commit

Permalink
Improve luscious rule (fixes #1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Sep 15, 2024
1 parent c7baa88 commit ff06934
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60718,14 +60718,18 @@ var $$IMU_EXPORT$$;
return add_full_extensions(newsrc, ["mp4", "jpg"]);
}

if (domain_nosub === "luscious.net" && /^w[0-9]+\./.test(domain)) {
if ((domain_nosub === "luscious.net" && /^w[0-9]+\./.test(domain)) ||
// thanks to vscum on github for reporting: https://github.com/qsniyg/maxurl/issues/1327
// https://ah-img.luscious.net/MugenUnix/535453/2fwok18w98z61_01HYG7J264R9DFD4SGVR7BAJBP.315x0.jpg
// https://cdnio.luscious.net/MugenUnix/535453/2fwok18w98z61_01HYG7J264R9DFD4SGVR7BAJBP.jpg
domain === "ah-img.luscious.net") {
// https://w100.luscious.net/Piclocked/316083/29737493_385675231951060_2443315356056420352_n_01CHCAG9S2B6ZYCNE0STTDBZP3.100x100.jpg
// https://cdnio.luscious.net/Piclocked/316083/29737493_385675231951060_2443315356056420352_n_01CHCAG9S2B6ZYCNE0STTDBZP3.jpg
return {
url: src.replace(/^[a-z]+:\/\/[^/]+\/+/, "https://cdnio.luscious.net/"),
can_head: false, // 403
headers: {
Referer: ""
Referer: "https://www.luscious.net/"
}
};
}
Expand All @@ -60742,7 +60746,7 @@ var $$IMU_EXPORT$$;
return fillobj_urls(add_full_extensions(newsrc), {
can_head: false,
headers: {
Referer: ""
Referer: "https://www.luscious.net/"
}
});
}
Expand Down
10 changes: 7 additions & 3 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -55265,14 +55265,18 @@ var $$IMU_EXPORT$$;
if (newsrc !== src)
return add_full_extensions(newsrc, ["mp4", "jpg"]);
}
if (domain_nosub === "luscious.net" && /^w[0-9]+\./.test(domain)) {
if ((domain_nosub === "luscious.net" && /^w[0-9]+\./.test(domain)) ||
// thanks to vscum on github for reporting: https://github.com/qsniyg/maxurl/issues/1327
// https://ah-img.luscious.net/MugenUnix/535453/2fwok18w98z61_01HYG7J264R9DFD4SGVR7BAJBP.315x0.jpg
// https://cdnio.luscious.net/MugenUnix/535453/2fwok18w98z61_01HYG7J264R9DFD4SGVR7BAJBP.jpg
domain === "ah-img.luscious.net") {
// https://w100.luscious.net/Piclocked/316083/29737493_385675231951060_2443315356056420352_n_01CHCAG9S2B6ZYCNE0STTDBZP3.100x100.jpg
// https://cdnio.luscious.net/Piclocked/316083/29737493_385675231951060_2443315356056420352_n_01CHCAG9S2B6ZYCNE0STTDBZP3.jpg
return {
url: src.replace(/^[a-z]+:\/\/[^/]+\/+/, "https://cdnio.luscious.net/"),
can_head: false, // 403
headers: {
Referer: ""
Referer: "https://www.luscious.net/"
}
};
}
Expand All @@ -55288,7 +55292,7 @@ var $$IMU_EXPORT$$;
return fillobj_urls(add_full_extensions(newsrc), {
can_head: false,
headers: {
Referer: ""
Referer: "https://www.luscious.net/"
}
});
}
Expand Down

0 comments on commit ff06934

Please sign in to comment.