Add Clarín (Argentina)

Facebook referer for ft.com removed.
This commit is contained in:
magnolia1234 2020-02-16 16:35:17 +01:00 committed by GitHub
parent 1241605cb8
commit e9934aec48
3 changed files with 5 additions and 2 deletions

View file

@ -197,6 +197,7 @@
#### Latin America
##### Argentina
[Clarín](https://www.clarin.com) -
[La Nación](https://www.lanacion.com.ar)
##### Brazil
[Exame](https://exame.abril.com.br)

View file

@ -19,6 +19,7 @@ var allow_cookies = [
'barrons.com',
'bostonglobe.com',
'cairnspost.com.au',
'clarin.com',
'couriermail.com.au',
'dailytelegraph.com.au',
'dn.se',
@ -316,7 +317,7 @@ browser.webRequest.onBeforeSendHeaders.addListener(function(details) {
// this fixes images not being loaded on cooking.nytimes.com main page
// referrer has to be *nytimes.com otherwise returns 403
requestHeader.value = 'https://cooking.nytimes.com';
} else if (details.url.indexOf("ft.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1) {
} else if (details.url.indexOf("clarin.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1) {
requestHeader.value = 'https://www.facebook.com/';
} else {
requestHeader.value = 'https://www.google.com/';
@ -332,7 +333,7 @@ browser.webRequest.onBeforeSendHeaders.addListener(function(details) {
// otherwise add it
if (!setReferer) {
if (details.url.indexOf("ft.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1) {
if (details.url.indexOf("clarin.com") !== -1 || details.url.indexOf("kleinezeitung.at") !== -1) {
requestHeaders.push({
name: 'Referer',
value: 'https://www.facebook.com/'

View file

@ -14,6 +14,7 @@
"Challenges": "challenges.fr",
"Chemical & Engineering News": "cen.acs.org",
"Chicago Tribune": "chicagotribune.com",
"Clarín": "clarin.com",
"CommonWealth Magazine Taiwan": "cw.com.tw",
"Corriere Della Sera": "corriere.it",
"Crain's Chicago Business": "chicagobusiness.com",