|
|
@ -89,6 +89,7 @@ var allow_cookies_default = [
|
|
|
|
'ilgiorno.it',
|
|
|
|
'ilgiorno.it',
|
|
|
|
'ilrestodelcarlino.it',
|
|
|
|
'ilrestodelcarlino.it',
|
|
|
|
'independent.ie',
|
|
|
|
'independent.ie',
|
|
|
|
|
|
|
|
'infzm.com',
|
|
|
|
'intelligentinvestor.com.au',
|
|
|
|
'intelligentinvestor.com.au',
|
|
|
|
'jpost.com',
|
|
|
|
'jpost.com',
|
|
|
|
'knack.be',
|
|
|
|
'knack.be',
|
|
|
@ -910,6 +911,18 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
|
|
|
["blocking"]
|
|
|
|
["blocking"]
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// infzm.com redirect to wap (mobile)
|
|
|
|
|
|
|
|
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
|
|
|
|
|
|
|
if (!isSiteEnabled(details)) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var updatedUrl = details.url.replace('.com/contents/', '.com/wap/#/content/');
|
|
|
|
|
|
|
|
return { redirectUrl: updatedUrl };
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{urls:["*://www.infzm.com/contents/*"], 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)) {
|
|
|
|