Fix Fd.nl

This commit is contained in:
magnolia1234 2020-04-03 21:03:27 +02:00 committed by GitHub
parent 60b606c676
commit 295c0e8471

View File

@ -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/'