mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 08:57:49 +01:00
Add La Croix (France)
This commit is contained in:
parent
6e8e471315
commit
b61adfd01d
6 changed files with 20 additions and 2 deletions
|
@ -159,6 +159,7 @@ Visit the [Chrome repository](https://gitlab.com/magnolia1234/bypass-paywalls-ch
|
||||||
[Charlie Hebdo](https://charliehebdo.fr) -
|
[Charlie Hebdo](https://charliehebdo.fr) -
|
||||||
[L'Écho](https://lecho.be) -
|
[L'Écho](https://lecho.be) -
|
||||||
[L'Opinion](https://www.lopinion.fr) –
|
[L'Opinion](https://www.lopinion.fr) –
|
||||||
|
[La Croix](https://www.la-croix.com) -
|
||||||
[La Dépêche](https://www.ladepeche.fr) –
|
[La Dépêche](https://www.ladepeche.fr) –
|
||||||
[Le Journal du Dimanche](https://lejdd.fr) –
|
[Le Journal du Dimanche](https://lejdd.fr) –
|
||||||
[Le Journal du Net](https://www.journaldunet.com) -
|
[Le Journal du Net](https://www.journaldunet.com) -
|
||||||
|
|
|
@ -58,6 +58,7 @@ var allow_cookies_default = [
|
||||||
'intelligentinvestor.com.au',
|
'intelligentinvestor.com.au',
|
||||||
'knack.be',
|
'knack.be',
|
||||||
'kurier.at',
|
'kurier.at',
|
||||||
|
'la-croix.com',
|
||||||
'lc.nl',
|
'lc.nl',
|
||||||
'lesechos.fr',
|
'lesechos.fr',
|
||||||
'lesoir.be',
|
'lesoir.be',
|
||||||
|
@ -219,6 +220,7 @@ var blockedRegexes = {
|
||||||
'irishtimes.com': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
|
'irishtimes.com': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
|
||||||
'knack.be': /.+\.knack\.be\/js\/responsive\/rmgModal\.js/,
|
'knack.be': /.+\.knack\.be\/js\/responsive\/rmgModal\.js/,
|
||||||
'kurier.at': /cdn\.tinypass\.com\/.+/,
|
'kurier.at': /cdn\.tinypass\.com\/.+/,
|
||||||
|
'la-croix.com': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
|
||||||
'ladepeche.fr': /.+\.poool\.fr\/.+/,
|
'ladepeche.fr': /.+\.poool\.fr\/.+/,
|
||||||
'lasegunda.com': /segreader\.emol\.cl\/assets\/js\/(vendor\/modal\.js|merPramV\d\.js)/,
|
'lasegunda.com': /segreader\.emol\.cl\/assets\/js\/(vendor\/modal\.js|merPramV\d\.js)/,
|
||||||
'lastampa.it': /.+\.repstatic\.it\/minify\/sites\/lastampa\/.+\/config\.cache\.php\?name=social_js/,
|
'lastampa.it': /.+\.repstatic\.it\/minify\/sites\/lastampa\/.+\/config\.cache\.php\?name=social_js/,
|
||||||
|
@ -687,9 +689,10 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||||
let au_apn_site = (header_referer && (urlHost(header_referer).endsWith('com.au') || urlHost(header_referer).endsWith('net.au')) && details.url.includes('https://media.apnarm.net.au/'));
|
let au_apn_site = (header_referer && (urlHost(header_referer).endsWith('com.au') || urlHost(header_referer).endsWith('net.au')) && details.url.includes('https://media.apnarm.net.au/'));
|
||||||
let au_swm_site = (header_referer && urlHost(header_referer).endsWith('com.au') && details.url.includes('https://s.thewest.com.au/'));
|
let au_swm_site = (header_referer && urlHost(header_referer).endsWith('com.au') && details.url.includes('https://s.thewest.com.au/'));
|
||||||
let es_grupo_vocento_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(es_grupo_vocento_domains, header_referer) && isSiteEnabled({url: header_referer}));
|
let es_grupo_vocento_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(es_grupo_vocento_domains, header_referer) && isSiteEnabled({url: header_referer}));
|
||||||
|
let fr_lacroix_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain('la-croix.com', header_referer) && isSiteEnabled({url: header_referer}));
|
||||||
let sz_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain('sueddeutsche.de', header_referer) && isSiteEnabled({url: header_referer}));
|
let sz_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain('sueddeutsche.de', header_referer) && isSiteEnabled({url: header_referer}));
|
||||||
|
|
||||||
if (!isSiteEnabled(details) && !inkl_site && !bloomberg_site && !au_nc_amp_site && !au_apn_site && !au_swm_site && !es_grupo_vocento_site && !sz_amp_site) {
|
if (!isSiteEnabled(details) && !inkl_site && !bloomberg_site && !au_nc_amp_site && !au_apn_site && !au_swm_site && !es_grupo_vocento_site && !fr_lacroix_amp_site && !sz_amp_site) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||||
Post-release
|
Post-release
|
||||||
Add El Periodico (Spain)
|
Add El Periodico (Spain)
|
||||||
Add Grupo Vocento (Spain, regional daily)
|
Add Grupo Vocento (Spain, regional daily)
|
||||||
|
Add La Croix (France)
|
||||||
Add The Hindu BusinessLine (India)
|
Add The Hindu BusinessLine (India)
|
||||||
Fix-update Corriere Della Sera (redirect preview)
|
Fix-update Corriere Della Sera (redirect preview)
|
||||||
Fix-update Faz.net (error in json)
|
Fix-update Faz.net (error in json)
|
||||||
|
|
|
@ -1704,6 +1704,17 @@ else if (matchDomain("elperiodico.com")) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain('la-croix.com')) {
|
||||||
|
let url = window.location.href;
|
||||||
|
if (!url.includes('la-croix.com/amp/')) {
|
||||||
|
let paywall_host_param = document.querySelector('#paywall-host-param');
|
||||||
|
removeDOMElement(paywall_host_param);
|
||||||
|
} else {
|
||||||
|
let paywall_block = document.querySelector('#paywall_block');
|
||||||
|
removeDOMElement(paywall_block);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// General Functions
|
// General Functions
|
||||||
function removeDOMElement(...elements) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
|
|
|
@ -176,6 +176,7 @@
|
||||||
"*://*.journalnow.com/*",
|
"*://*.journalnow.com/*",
|
||||||
"*://*.knack.be/*",
|
"*://*.knack.be/*",
|
||||||
"*://*.kurier.at/*",
|
"*://*.kurier.at/*",
|
||||||
|
"*://*.la-croix.com/*",
|
||||||
"*://*.labusinessjournal.com/*",
|
"*://*.labusinessjournal.com/*",
|
||||||
"*://*.ladepeche.fr/*",
|
"*://*.ladepeche.fr/*",
|
||||||
"*://*.lanacion.com.ar/*",
|
"*://*.lanacion.com.ar/*",
|
||||||
|
@ -357,5 +358,5 @@
|
||||||
"*://*.repstatic.it/*",
|
"*://*.repstatic.it/*",
|
||||||
"*://*.userzoom.com/*"
|
"*://*.userzoom.com/*"
|
||||||
],
|
],
|
||||||
"version": "1.9.6.6"
|
"version": "1.9.6.7"
|
||||||
}
|
}
|
1
sites.js
1
sites.js
|
@ -93,6 +93,7 @@ var defaultSites =
|
||||||
"L'Écho": "lecho.be",
|
"L'Écho": "lecho.be",
|
||||||
"L'Opinion": "lopinion.fr",
|
"L'Opinion": "lopinion.fr",
|
||||||
"L'Orient-Le Jour": "lorientlejour.com",
|
"L'Orient-Le Jour": "lorientlejour.com",
|
||||||
|
"La Croix": "la-croix.com",
|
||||||
"La Dépêche": "ladepeche.fr",
|
"La Dépêche": "ladepeche.fr",
|
||||||
"La Estrella de Valparaíso": "estrellavalpo.cl",
|
"La Estrella de Valparaíso": "estrellavalpo.cl",
|
||||||
"La Nación": "lanacion.com.ar",
|
"La Nación": "lanacion.com.ar",
|
||||||
|
|
Loading…
Reference in a new issue