Fix-update Saechsische Zeitung (amp)

This commit is contained in:
magnolia1234 2021-05-21 18:21:25 +02:00
parent 1e82bfc7d1
commit 9c945afccd
3 changed files with 14 additions and 1 deletions

View file

@ -865,6 +865,18 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
["blocking"]
);
// saechsische.de amp-redirect
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
if (!isSiteEnabled(details)) {
return;
}
var updatedUrl = details.url.replace('-plus-amp.html', '-plus.html');
return { redirectUrl: updatedUrl };
},
{urls:["*://*.saechsische.de/*-plus-amp.html*"], types:["main_frame"]},
["blocking"]
);
// fix nytimes x-frame-options (hidden iframe content)
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
if (!isSiteEnabled(details)) {

View file

@ -5,6 +5,7 @@ Post-release
Add MediaNama (India)
Remove Mitteldeutsche Zeitung (obsolete)
Fix-update Prensa Iberica
Fix-update Saechsische Zeitung (amp)
Fix-update The Economic Times (mobile/India)
Fix-update Valor Economico (Google webcache)

View file

@ -516,5 +516,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.2.1.5"
"version": "2.2.1.6"
}