Skip to content

Commit

Permalink
Support rbb24.de (fixes #941)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 5, 2024
1 parent c20c6c0 commit a00ded3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112002,6 +112002,13 @@ var $$IMU_EXPORT$$;
return add_extensions(newsrc);
}

if (domain_nowww === "rbb24.de") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/941
// https://www.rbb24.de/content/dam/rbb/rbb/rbb24/2021/2021_10/dpa-account/108452692.jpg.jpg/size=708x398.jpg
// 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");
}




Expand Down
6 changes: 6 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -100527,6 +100527,12 @@ var $$IMU_EXPORT$$;
if (newsrc !== src)
return add_extensions(newsrc);
}
if (domain_nowww === "rbb24.de") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/941
// https://www.rbb24.de/content/dam/rbb/rbb/rbb24/2021/2021_10/dpa-account/108452692.jpg.jpg/size=708x398.jpg
// 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");
}
// -- 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 a00ded3

Please sign in to comment.