Skip to content

Commit

Permalink
Support mdr.de (fixes #945)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 1, 2024
1 parent 76c4c99 commit 52ae294
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 @@ -111721,6 +111721,15 @@ var $$IMU_EXPORT$$;
return src.replace(/(_v-)content(?:klein|gross|xl)\./, "$1fullhd.");
}

if (domain_nowww === "cdn.mdr.de") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/945
// https://cdn.mdr.de/nachrichten/thueringen/mitte-thueringen/erfurt/feuerwehr-azmannsdorf-104-resimage_v-variantBig24x9_w-1024.jpg?version=22298
// https://cdn.mdr.de/nachrichten/thueringen/mitte-thueringen/erfurt/feuerwehr-azmannsdorf-104-resimage_v-variantBig1xN.jpg?version=22298
// https://cdn.mdr.de/nachrichten/sachsen/flugzeug-abfertiger-102-resimage_v-variantSmall16x9_w-256.jpg
// https://cdn.mdr.de/nachrichten/sachsen/flugzeug-abfertiger-102-resimage_v-variantBig1xN.jpg
return src.replace(/(_v-variant)[^/.]+\./, "$1Big1xN.");
}




Expand Down
8 changes: 8 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -100272,6 +100272,14 @@ var $$IMU_EXPORT$$;
// https://www.ndr.de/nachrichten/hamburg/drohne714_v-fullhd.jpg
return src.replace(/(_v-)content(?:klein|gross|xl)\./, "$1fullhd.");
}
if (domain_nowww === "cdn.mdr.de") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/945
// https://cdn.mdr.de/nachrichten/thueringen/mitte-thueringen/erfurt/feuerwehr-azmannsdorf-104-resimage_v-variantBig24x9_w-1024.jpg?version=22298
// https://cdn.mdr.de/nachrichten/thueringen/mitte-thueringen/erfurt/feuerwehr-azmannsdorf-104-resimage_v-variantBig1xN.jpg?version=22298
// https://cdn.mdr.de/nachrichten/sachsen/flugzeug-abfertiger-102-resimage_v-variantSmall16x9_w-256.jpg
// https://cdn.mdr.de/nachrichten/sachsen/flugzeug-abfertiger-102-resimage_v-variantBig1xN.jpg
return src.replace(/(_v-variant)[^/.]+\./, "$1Big1xN.");
}
// -- 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 52ae294

Please sign in to comment.