|
|
@ -865,6 +865,18 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
|
|
|
["blocking"]
|
|
|
|
["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)
|
|
|
|
// fix nytimes x-frame-options (hidden iframe content)
|
|
|
|
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
|
|
|
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
|
|
|
if (!isSiteEnabled(details)) {
|
|
|
|
if (!isSiteEnabled(details)) {
|
|
|
|