diff --git a/background.js b/background.js index c5a07601..d0c58a67 100644 --- a/background.js +++ b/background.js @@ -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)) { diff --git a/changelog.txt b/changelog.txt index 61481fc4..b11f0af5 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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) diff --git a/manifest.json b/manifest.json index f0a56643..b945a28b 100644 --- a/manifest.json +++ b/manifest.json @@ -516,5 +516,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.2.1.5" + "version": "2.2.1.6" } \ No newline at end of file