Fix-update Saechsische Zeitung (amp)

merge-requests/1/head
magnolia1234 3 years ago
parent 1e82bfc7d1
commit 9c945afccd

@ -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)) {

@ -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)

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