Skip to content

Commit

Permalink
Support zaiko.io (fixes #940)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 5, 2024
1 parent a00ded3 commit af35de3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112009,6 +112009,18 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/content\/+dam\/+.*?)\.[a-z]+\/+size=[^/]+(?:[?#].*)?$/, "$1");
}

if (domain === "d38fgd7fmrcuct.cloudfront.net" ||
// https://media.zaiko.io/bw_200/1_43qec3h34l2mj66p6i1fh
// https://media.zaiko.io/1_43qec3h34l2mj66p6i1fh
domain === "media.zaiko.io") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/940
// https://d38fgd7fmrcuct.cloudfront.net/bw_200/1_3xj7j5i5kaauoas0el6ye
// https://d38fgd7fmrcuct.cloudfront.net/1_3xj7j5i5kaauoas0el6ye
// https://d38fgd7fmrcuct.cloudfront.net/bh_200/1_3xj7j5i5kaauoas0el6ye
// https://d38fgd7fmrcuct.cloudfront.net/1_3xj7j5i5kaauoas0el6ye
return src.replace(/\/b[wh]_[0-9]+\/+([^/]+)(?:[?#].*)?$/, "/$1");
}




Expand Down
11 changes: 11 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -100533,6 +100533,17 @@ var $$IMU_EXPORT$$;
// https://www.rbb24.de/content/dam/rbb/rbb/rbb24/2021/2021_10/dpa-account/108452692.jpg
return src.replace(/(\/content\/+dam\/+.*?)\.[a-z]+\/+size=[^/]+(?:[?#].*)?$/, "$1");
}
if (domain === "d38fgd7fmrcuct.cloudfront.net" ||
// https://media.zaiko.io/bw_200/1_43qec3h34l2mj66p6i1fh
// https://media.zaiko.io/1_43qec3h34l2mj66p6i1fh
domain === "media.zaiko.io") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/940
// https://d38fgd7fmrcuct.cloudfront.net/bw_200/1_3xj7j5i5kaauoas0el6ye
// https://d38fgd7fmrcuct.cloudfront.net/1_3xj7j5i5kaauoas0el6ye
// https://d38fgd7fmrcuct.cloudfront.net/bh_200/1_3xj7j5i5kaauoas0el6ye
// https://d38fgd7fmrcuct.cloudfront.net/1_3xj7j5i5kaauoas0el6ye
return src.replace(/\/b[wh]_[0-9]+\/+([^/]+)(?:[?#].*)?$/, "/$1");
}
// -- 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 af35de3

Please sign in to comment.