mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:27: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
|
#### Latin America
|
||||||
##### Argentina
|
##### Argentina
|
||||||
|
[Clarín](https://www.clarin.com) -
|
||||||
[La Nación](https://www.lanacion.com.ar)
|
[La Nación](https://www.lanacion.com.ar)
|
||||||
##### Brazil
|
##### Brazil
|
||||||
[Exame](https://exame.abril.com.br) –
|
[Exame](https://exame.abril.com.br) –
|
||||||
|
|
|
@ -19,6 +19,7 @@ var allow_cookies = [
|
||||||
'barrons.com',
|
'barrons.com',
|
||||||
'bostonglobe.com',
|
'bostonglobe.com',
|
||||||
'cairnspost.com.au',
|
'cairnspost.com.au',
|
||||||
|
'clarin.com',
|
||||||
'couriermail.com.au',
|
'couriermail.com.au',
|
||||||
'dailytelegraph.com.au',
|
'dailytelegraph.com.au',
|
||||||
'dn.se',
|
'dn.se',
|
||||||
|
@ -316,7 +317,7 @@ browser.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("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/';
|
requestHeader.value = 'https://www.facebook.com/';
|
||||||
} else {
|
} else {
|
||||||
requestHeader.value = 'https://www.google.com/';
|
requestHeader.value = 'https://www.google.com/';
|
||||||
|
@ -332,7 +333,7 @@ browser.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||||
|
|
||||||
// otherwise add it
|
// otherwise add it
|
||||||
if (!setReferer) {
|
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({
|
requestHeaders.push({
|
||||||
name: 'Referer',
|
name: 'Referer',
|
||||||
value: 'https://www.facebook.com/'
|
value: 'https://www.facebook.com/'
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
"Challenges": "challenges.fr",
|
"Challenges": "challenges.fr",
|
||||||
"Chemical & Engineering News": "cen.acs.org",
|
"Chemical & Engineering News": "cen.acs.org",
|
||||||
"Chicago Tribune": "chicagotribune.com",
|
"Chicago Tribune": "chicagotribune.com",
|
||||||
|
"Clarín": "clarin.com",
|
||||||
"CommonWealth Magazine Taiwan": "cw.com.tw",
|
"CommonWealth Magazine Taiwan": "cw.com.tw",
|
||||||
"Corriere Della Sera": "corriere.it",
|
"Corriere Della Sera": "corriere.it",
|
||||||
"Crain's Chicago Business": "chicagobusiness.com",
|
"Crain's Chicago Business": "chicagobusiness.com",
|
||||||
|
|
Loading…
Reference in a new issue