mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:57:48 +01:00
Add Clarín (Argentina)
Facebook referer for ft.com removed.
This commit is contained in:
parent
1241605cb8
commit
e9934aec48
3 changed files with 5 additions and 2 deletions
|
@ -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) –
|
||||
|
|
|
@ -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/'
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue