Skip to content

Commit

Permalink
Support zvuk (fixes #1348)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Aug 16, 2024
1 parent 6248837 commit dac87c2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115458,6 +115458,15 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/content\/+[0-9A-Z]+\/+)[0-9]+x[0-9]+\./, "$1original.");
}

if (domain === "cdn-image.zvuk.com") {
// thanks to karpuzikov on github: https://github.com/qsniyg/maxurl/issues/1348
// https://cdn-image.zvuk.com/pic?type=release&id=2040642&size=1920x1920&hash=...
// https://cdn-image.zvuk.com/pic?type=release&id=2040642
if (/:\/\/[^/]+\/+pic\?/.test(src)) {
return keep_queries(src, ["type", "id"]);
}
}




Expand Down
8 changes: 8 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -103668,6 +103668,14 @@ var $$IMU_EXPORT$$;
// https://blockdaemon-audius-content-07.bdnodes.net/content/01J4WQW2KK0DSVWJG461AVD7ZH/original.jpg
return src.replace(/(\/content\/+[0-9A-Z]+\/+)[0-9]+x[0-9]+\./, "$1original.");
}
if (domain === "cdn-image.zvuk.com") {
// thanks to karpuzikov on github: https://github.com/qsniyg/maxurl/issues/1348
// https://cdn-image.zvuk.com/pic?type=release&id=2040642&size=1920x1920&hash=...
// https://cdn-image.zvuk.com/pic?type=release&id=2040642
if (/:\/\/[^/]+\/+pic\?/.test(src)) {
return keep_queries(src, ["type", "id"]);
}
}
// -- 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 dac87c2

Please sign in to comment.