Skip to content

Commit

Permalink
Support ndr.de (fixes #947)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Feb 1, 2024
1 parent 545a523 commit 76c4c99
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111711,6 +111711,16 @@ var $$IMU_EXPORT$$;
};
}

if (domain_nowww === "ndr.de") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/947
// https://www.ndr.de/nachrichten/hamburg/Weltpremiere-Frachtdrohne-absolviert-Erstflug-in-Hamburg,drohne718.html
// https://www.ndr.de/nachrichten/hamburg/drohne714_v-contentklein.jpg
// https://www.ndr.de/nachrichten/hamburg/drohne714_v-contentgross.jpg
// https://www.ndr.de/nachrichten/hamburg/drohne714_v-contentxl.jpg
// https://www.ndr.de/nachrichten/hamburg/drohne714_v-fullhd.jpg
return src.replace(/(_v-)content(?:klein|gross|xl)\./, "$1fullhd.");
}




Expand Down
9 changes: 9 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -100263,6 +100263,15 @@ var $$IMU_EXPORT$$;
head_wrong_contentlength: true
};
}
if (domain_nowww === "ndr.de") {
// thanks to nimbuz on discord: https://github.com/qsniyg/maxurl/issues/947
// https://www.ndr.de/nachrichten/hamburg/Weltpremiere-Frachtdrohne-absolviert-Erstflug-in-Hamburg,drohne718.html
// https://www.ndr.de/nachrichten/hamburg/drohne714_v-contentklein.jpg
// https://www.ndr.de/nachrichten/hamburg/drohne714_v-contentgross.jpg
// https://www.ndr.de/nachrichten/hamburg/drohne714_v-contentxl.jpg
// https://www.ndr.de/nachrichten/hamburg/drohne714_v-fullhd.jpg
return src.replace(/(_v-)content(?:klein|gross|xl)\./, "$1fullhd.");
}
// -- 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 76c4c99

Please sign in to comment.