diff --git a/src/userscript.ts b/src/userscript.ts index c76e5e09..d28bde40 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -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"); + } + diff --git a/userscript.user.js b/userscript.user.js index a5f1b5ac..c83cc191 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -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