Fix Fd.nl

merge-requests/1/head
magnolia1234 5 years ago committed by GitHub
parent 60b606c676
commit 295c0e8471

@ -29,7 +29,6 @@ var allow_cookies = [
'dn.se', 'dn.se',
'dvhn.nl', 'dvhn.nl',
'elmercurio.com', 'elmercurio.com',
'fd.nl',
'folha.uol.com.br', 'folha.uol.com.br',
'gestion.pe', 'gestion.pe',
'goldcoastbulletin.com.au', 'goldcoastbulletin.com.au',
@ -88,7 +87,7 @@ const remove_cookies_select_drop = {
'caixinglobal.com': ['CAIXINGLB_LOGIN_UUID'], 'caixinglobal.com': ['CAIXINGLB_LOGIN_UUID'],
'demorgen.be': ['TID_ID'], 'demorgen.be': ['TID_ID'],
'dn.se': ['randomSplusId'], 'dn.se': ['randomSplusId'],
'ed.nl': ['temptationTrackingId'], 'fd.nl': ['socialread'],
'nrc.nl': ['counter'], 'nrc.nl': ['counter'],
'theatlantic.com': ['articleViews'] 'theatlantic.com': ['articleViews']
} }
@ -102,7 +101,6 @@ const use_google_bot_default = [
'couriermail.com.au', 'couriermail.com.au',
'dailytelegraph.com.au', 'dailytelegraph.com.au',
'dn.se', 'dn.se',
'fd.nl',
'ft.com', 'ft.com',
'goldcoastbulletin.com.au', 'goldcoastbulletin.com.au',
'haaretz.co.il', 'haaretz.co.il',
@ -415,7 +413,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
// this fixes images not being loaded on cooking.nytimes.com main page // this fixes images not being loaded on cooking.nytimes.com main page
// referrer has to be *nytimes.com otherwise returns 403 // referrer has to be *nytimes.com otherwise returns 403
requestHeader.value = 'https://cooking.nytimes.com'; requestHeader.value = 'https://cooking.nytimes.com';
} else if (details.url.indexOf("clarin.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1) { } else if (details.url.indexOf("clarin.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1 || details.url.indexOf("fd.nl") !== -1) {
requestHeader.value = 'https://www.facebook.com/'; requestHeader.value = 'https://www.facebook.com/';
} else { } else {
requestHeader.value = 'https://www.google.com/'; requestHeader.value = 'https://www.google.com/';
@ -431,7 +429,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
// otherwise add it // otherwise add it
if (!setReferer) { if (!setReferer) {
if (details.url.indexOf("clarin.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1) { if (details.url.indexOf("clarin.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1 || details.url.indexOf("fd.nl") !== -1) {
requestHeaders.push({ requestHeaders.push({
name: 'Referer', name: 'Referer',
value: 'https://www.facebook.com/' value: 'https://www.facebook.com/'

Loading…
Cancel
Save