mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:37:47 +01:00
Add Groupe EBRA (France)
This commit is contained in:
parent
2242270906
commit
4934148035
6 changed files with 55 additions and 3 deletions
10
README.md
10
README.md
|
@ -171,6 +171,16 @@ Alma Talent sites (grouped in options) like
|
||||||
[Challenges](https://www.challenges.fr) –
|
[Challenges](https://www.challenges.fr) –
|
||||||
[Charlie Hebdo](https://charliehebdo.fr) -
|
[Charlie Hebdo](https://charliehebdo.fr) -
|
||||||
[Esprit](https://esprit.presse.fr)
|
[Esprit](https://esprit.presse.fr)
|
||||||
|
Groupe EBRA sites (grouped in options) like
|
||||||
|
[Dernières Nouvelles d'Alsace](https://www.dna.fr) -
|
||||||
|
[L'Alsace](https://www.lalsace.fr) -
|
||||||
|
[L'Est Républicain](https://www.estrepublicain.fr) -
|
||||||
|
[Le Bien Public](https://www.bienpublic.com) -
|
||||||
|
[Le Dauphiné Libéré](https://www.ledauphine.com) -
|
||||||
|
[Le Journal de Saône-et-Loire](https://www.lejsl.com) -
|
||||||
|
[Le Progrès](https://www.leprogres.fr) -
|
||||||
|
[Le Républicain Lorrain](https://www.republicain-lorrain.fr) -
|
||||||
|
[Vosges Matin](https://www.vosgesmatin.fr)
|
||||||
Groupe Rossel sites (grouped in options) like
|
Groupe Rossel sites (grouped in options) like
|
||||||
[L'Aisne nouvelle](https://www.aisnenouvelle.fr) -
|
[L'Aisne nouvelle](https://www.aisnenouvelle.fr) -
|
||||||
[L'Ardennais](https://www.lardennais.fr) -
|
[L'Ardennais](https://www.lardennais.fr) -
|
||||||
|
|
|
@ -291,6 +291,7 @@ const au_prov_news_domains = ['news-mail.com.au', 'frasercoastchronicle.com.au',
|
||||||
const es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'laverdad.es', 'lavozdigital.es'];
|
const es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'laverdad.es', 'lavozdigital.es'];
|
||||||
const fi_alma_talent_domains = ['arvopaperi.fi', 'kauppalehti.fi', 'marmai.fi', 'mediuutiset.fi', 'mikrobitti.fi', 'talouselama.fi', 'tekniikkatalous.fi', 'tivi.fi', 'uusisuomi.fi'];
|
const fi_alma_talent_domains = ['arvopaperi.fi', 'kauppalehti.fi', 'marmai.fi', 'mediuutiset.fi', 'mikrobitti.fi', 'talouselama.fi', 'tekniikkatalous.fi', 'tivi.fi', 'uusisuomi.fi'];
|
||||||
const fr_be_groupe_rossel_domains = ['aisnenouvelle.fr', 'courrier-picard.fr', 'lardennais.fr', 'lavoixdunord.fr', 'lecho.be', 'lesoir.be', 'lest-eclair.fr', 'liberation-champagne.fr', 'lunion.fr', 'nordeclair.fr', 'paris-normandie.fr', 'sudinfo.be'];
|
const fr_be_groupe_rossel_domains = ['aisnenouvelle.fr', 'courrier-picard.fr', 'lardennais.fr', 'lavoixdunord.fr', 'lecho.be', 'lesoir.be', 'lest-eclair.fr', 'liberation-champagne.fr', 'lunion.fr', 'nordeclair.fr', 'paris-normandie.fr', 'sudinfo.be'];
|
||||||
|
const fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', 'lalsace.fr', 'ledauphine.com', 'lejsl.com', 'leprogres.fr', 'republicain-lorrain.fr', 'vosgesmatin.fr'];
|
||||||
const ilmessaggero_domains = ['corriereadriatico.it', 'ilgazzettino.it', 'ilmattino.it', 'quotidianodipuglia.it'];
|
const ilmessaggero_domains = ['corriereadriatico.it', 'ilgazzettino.it', 'ilmattino.it', 'quotidianodipuglia.it'];
|
||||||
const nymag_domains = ['grubstreet.com', 'thecut.com', 'vulture.com'];
|
const nymag_domains = ['grubstreet.com', 'thecut.com', 'vulture.com'];
|
||||||
// pg_domains has only grouped remove_cookies_select_drop rules
|
// pg_domains has only grouped remove_cookies_select_drop rules
|
||||||
|
@ -305,7 +306,7 @@ const userAgentMobileB = "Chrome/80.0.3987.92 Mobile Safari/537.36 (compatible;
|
||||||
var enabledSites = [];
|
var enabledSites = [];
|
||||||
var disabledSites = [];
|
var disabledSites = [];
|
||||||
var defaultSites_grouped_domains = Object.values(defaultSites);
|
var defaultSites_grouped_domains = Object.values(defaultSites);
|
||||||
var defaultSites_domains = defaultSites_grouped_domains.concat(ad_region_domains, au_comm_media_domains, au_news_corp_domains, au_prov_news_domains, es_grupo_vocento_domains, fi_alma_talent_domains, fr_be_groupe_rossel_domains, ilmessaggero_domains, nymag_domains);
|
var defaultSites_domains = defaultSites_grouped_domains.concat(ad_region_domains, au_comm_media_domains, au_news_corp_domains, au_prov_news_domains, es_grupo_vocento_domains, fi_alma_talent_domains, fr_be_groupe_rossel_domains, fr_groupe_ebra_domains, ilmessaggero_domains, nymag_domains);
|
||||||
var customSites = {};
|
var customSites = {};
|
||||||
var customSites_domains = [];
|
var customSites_domains = [];
|
||||||
|
|
||||||
|
@ -373,6 +374,10 @@ function add_grouped_sites(init_rules) {
|
||||||
use_google_bot.push(domain);
|
use_google_bot.push(domain);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (let domain of fr_groupe_ebra_domains) {
|
||||||
|
allow_cookies.push(domain);
|
||||||
|
blockedRegexes[domain] = /(.+\.poool\.fr\/.+|cdn\.ampproject\.org\/v\d\/amp-(access|iframe)-.+\.js)/;
|
||||||
|
}
|
||||||
for (let domain of ilmessaggero_domains)
|
for (let domain of ilmessaggero_domains)
|
||||||
blockedRegexes[domain] = /utils\.cedsdigital\.it\/js\/PaywallMeter\.js/;
|
blockedRegexes[domain] = /utils\.cedsdigital\.it\/js\/PaywallMeter\.js/;
|
||||||
for (let domain of pg_domains)
|
for (let domain of pg_domains)
|
||||||
|
@ -406,6 +411,10 @@ function add_grouped_sites(init_rules) {
|
||||||
enabledSites = enabledSites.concat(fr_be_groupe_rossel_domains);
|
enabledSites = enabledSites.concat(fr_be_groupe_rossel_domains);
|
||||||
else
|
else
|
||||||
disabledSites = disabledSites.concat(fr_be_groupe_rossel_domains);
|
disabledSites = disabledSites.concat(fr_be_groupe_rossel_domains);
|
||||||
|
if (enabledSites.includes('###_fr_groupe_ebra'))
|
||||||
|
enabledSites = enabledSites.concat(fr_groupe_ebra_domains);
|
||||||
|
else
|
||||||
|
disabledSites = disabledSites.concat(fr_groupe_ebra_domains);
|
||||||
if (enabledSites.includes('ilmessaggero.it'))
|
if (enabledSites.includes('ilmessaggero.it'))
|
||||||
enabledSites = enabledSites.concat(ilmessaggero_domains);
|
enabledSites = enabledSites.concat(ilmessaggero_domains);
|
||||||
else
|
else
|
||||||
|
@ -728,11 +737,12 @@ 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_groupe_ebra_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(fr_groupe_ebra_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 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}));
|
||||||
let uk_telegraph_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain('telegraph.co.uk', header_referer) && isSiteEnabled({url: header_referer}));
|
let uk_telegraph_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain('telegraph.co.uk', header_referer) && isSiteEnabled({url: header_referer}));
|
||||||
|
|
||||||
if (!isSiteEnabled(details) && !inkl_site && !au_nc_amp_site && !au_apn_site && !au_swm_site && !es_grupo_vocento_site && !fr_lacroix_amp_site && !sz_amp_site && !uk_telegraph_amp_site) {
|
if (!isSiteEnabled(details) && !inkl_site && !au_nc_amp_site && !au_apn_site && !au_swm_site && !es_grupo_vocento_site && !fr_groupe_ebra_site && !fr_lacroix_amp_site && !sz_amp_site && !uk_telegraph_amp_site) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Changelog Bypass Paywalls Clean - Firefox
|
Changelog Bypass Paywalls Clean - Firefox
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Add Groupe EBRA (France)
|
||||||
|
|
||||||
* v1.9.8.0 (2020-12-06)
|
* v1.9.8.0 (2020-12-06)
|
||||||
Add El Comercio, Ideal & La Voz de Cadiz (Spain)
|
Add El Comercio, Ideal & La Voz de Cadiz (Spain)
|
||||||
|
|
|
@ -6,6 +6,7 @@ var csDone = false;
|
||||||
// clean local storage of sites (with an exemption for hold-list)
|
// clean local storage of sites (with an exemption for hold-list)
|
||||||
var arr_localstorage_hold = ['charliehebdo.fr', 'elmundo.es', 'kurier.at', 'nknews.org', 'nrz.de', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk', 'waz.de', 'wp.de', 'wr.de'];
|
var arr_localstorage_hold = ['charliehebdo.fr', 'elmundo.es', 'kurier.at', 'nknews.org', 'nrz.de', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk', 'waz.de', 'wp.de', 'wr.de'];
|
||||||
var es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'laverdad.es', 'lavozdigital.es'];
|
var es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'laverdad.es', 'lavozdigital.es'];
|
||||||
|
var fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', 'lalsace.fr', 'ledauphine.com', 'lejsl.com', 'leprogres.fr', 'republicain-lorrain.fr', 'vosgesmatin.fr'];
|
||||||
arr_localstorage_hold = arr_localstorage_hold.concat(es_grupo_vocento_domains);
|
arr_localstorage_hold = arr_localstorage_hold.concat(es_grupo_vocento_domains);
|
||||||
if (!matchDomain(arr_localstorage_hold)){
|
if (!matchDomain(arr_localstorage_hold)){
|
||||||
window.localStorage.clear();
|
window.localStorage.clear();
|
||||||
|
@ -1805,6 +1806,26 @@ else if (matchDomain('esprit.presse.fr')) {
|
||||||
removeDOMElement(paywall);
|
removeDOMElement(paywall);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if ((domain = matchDomain(fr_groupe_ebra_domains)) && window.location.href.match(/\/\d{4}\/\d{2}\/\d{2}\//)) {
|
||||||
|
let url = window.location.href;
|
||||||
|
let url_new = url.replace(domain + '/', domain + '/amp/');
|
||||||
|
if (!url.includes(domain + '/amp/')) {
|
||||||
|
let free = document.querySelector('[class^="paywall"]');
|
||||||
|
if (!free) {
|
||||||
|
window.setTimeout(function () {
|
||||||
|
window.location.href = url_new;
|
||||||
|
}, 500); // Delay (in milliseconds)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
let amp_access_hide = document.querySelector('[amp-access-hide]');
|
||||||
|
if (amp_access_hide) {
|
||||||
|
let not_access_section = document.querySelector('section[amp-access="NOT access"]');
|
||||||
|
removeDOMElement(not_access_section);
|
||||||
|
amp_access_hide.removeAttribute('amp-access-hide');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
csDone = true;
|
csDone = true;
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
"*://*.bd.nl/*",
|
"*://*.bd.nl/*",
|
||||||
"*://*.belfasttelegraph.co.uk/*",
|
"*://*.belfasttelegraph.co.uk/*",
|
||||||
"*://*.bendigoadvertiser.com.au/*",
|
"*://*.bendigoadvertiser.com.au/*",
|
||||||
|
"*://*.bienpublic.com/*",
|
||||||
"*://*.bizjournals.com/*",
|
"*://*.bizjournals.com/*",
|
||||||
"*://*.bloomberg.com/*",
|
"*://*.bloomberg.com/*",
|
||||||
"*://*.bloombergquint.com/*",
|
"*://*.bloombergquint.com/*",
|
||||||
|
@ -106,6 +107,7 @@
|
||||||
"*://*.digiday.com/*",
|
"*://*.digiday.com/*",
|
||||||
"*://*.discovermagazine.com/*",
|
"*://*.discovermagazine.com/*",
|
||||||
"*://*.dn.se/*",
|
"*://*.dn.se/*",
|
||||||
|
"*://*.dna.fr/*",
|
||||||
"*://*.dvhn.nl/*",
|
"*://*.dvhn.nl/*",
|
||||||
"*://*.economist.com/*",
|
"*://*.economist.com/*",
|
||||||
"*://*.ed.nl/*",
|
"*://*.ed.nl/*",
|
||||||
|
@ -121,6 +123,7 @@
|
||||||
"*://*.elperiodico.com/*",
|
"*://*.elperiodico.com/*",
|
||||||
"*://*.estadao.com.br/*",
|
"*://*.estadao.com.br/*",
|
||||||
"*://*.estrellavalpo.cl/*",
|
"*://*.estrellavalpo.cl/*",
|
||||||
|
"*://*.estrepublicain.fr/*",
|
||||||
"*://*.eurekareport.com.au/*",
|
"*://*.eurekareport.com.au/*",
|
||||||
"*://*.exame.abril.com.br/*",
|
"*://*.exame.abril.com.br/*",
|
||||||
"*://*.examiner.com.au/*",
|
"*://*.examiner.com.au/*",
|
||||||
|
@ -185,6 +188,7 @@
|
||||||
"*://*.la-croix.com/*",
|
"*://*.la-croix.com/*",
|
||||||
"*://*.labusinessjournal.com/*",
|
"*://*.labusinessjournal.com/*",
|
||||||
"*://*.ladepeche.fr/*",
|
"*://*.ladepeche.fr/*",
|
||||||
|
"*://*.lalsace.fr/*",
|
||||||
"*://*.lanacion.com.ar/*",
|
"*://*.lanacion.com.ar/*",
|
||||||
"*://*.lardennais.fr/*",
|
"*://*.lardennais.fr/*",
|
||||||
"*://*.larioja.com/*",
|
"*://*.larioja.com/*",
|
||||||
|
@ -197,9 +201,12 @@
|
||||||
"*://*.lavozdigital.es/*",
|
"*://*.lavozdigital.es/*",
|
||||||
"*://*.lc.nl/*",
|
"*://*.lc.nl/*",
|
||||||
"*://*.lecho.be/*",
|
"*://*.lecho.be/*",
|
||||||
|
"*://*.ledauphine.com/*",
|
||||||
"*://*.ledevoir.com/*",
|
"*://*.ledevoir.com/*",
|
||||||
"*://*.lejdd.fr/*",
|
"*://*.lejdd.fr/*",
|
||||||
|
"*://*.lejsl.com/*",
|
||||||
"*://*.leparisien.fr/*",
|
"*://*.leparisien.fr/*",
|
||||||
|
"*://*.leprogres.fr/*",
|
||||||
"*://*.lescienze.it/*",
|
"*://*.lescienze.it/*",
|
||||||
"*://*.lesechos.com/*",
|
"*://*.lesechos.com/*",
|
||||||
"*://*.lesechos.fr/*",
|
"*://*.lesechos.fr/*",
|
||||||
|
@ -266,6 +273,7 @@
|
||||||
"*://*.qz.com/*",
|
"*://*.qz.com/*",
|
||||||
"*://*.repubblica.it/*",
|
"*://*.repubblica.it/*",
|
||||||
"*://*.republic.ru/*",
|
"*://*.republic.ru/*",
|
||||||
|
"*://*.republicain-lorrain.fr/*",
|
||||||
"*://*.rollingstone.com/*",
|
"*://*.rollingstone.com/*",
|
||||||
"*://*.sacbee.com/*",
|
"*://*.sacbee.com/*",
|
||||||
"*://*.saechsische.de/*",
|
"*://*.saechsische.de/*",
|
||||||
|
@ -335,6 +343,7 @@
|
||||||
"*://*.vanityfair.com/*",
|
"*://*.vanityfair.com/*",
|
||||||
"*://*.variety.com/*",
|
"*://*.variety.com/*",
|
||||||
"*://*.volkskrant.nl/*",
|
"*://*.volkskrant.nl/*",
|
||||||
|
"*://*.vosgesmatin.fr/*",
|
||||||
"*://*.vulture.com/*",
|
"*://*.vulture.com/*",
|
||||||
"*://*.warwickdailynews.com.au/*",
|
"*://*.warwickdailynews.com.au/*",
|
||||||
"*://*.washingtonpost.com/*",
|
"*://*.washingtonpost.com/*",
|
||||||
|
@ -379,5 +388,5 @@
|
||||||
"*://*.repstatic.it/*",
|
"*://*.repstatic.it/*",
|
||||||
"*://*.userzoom.com/*"
|
"*://*.userzoom.com/*"
|
||||||
],
|
],
|
||||||
"version": "1.9.8.0"
|
"version": "1.9.8.1"
|
||||||
}
|
}
|
1
sites.js
1
sites.js
|
@ -70,6 +70,7 @@ var defaultSites =
|
||||||
"Glassdoor": "glassdoor.com",
|
"Glassdoor": "glassdoor.com",
|
||||||
"Globes": "globes.co.il",
|
"Globes": "globes.co.il",
|
||||||
"Groene Amsterdammer": "groene.nl",
|
"Groene Amsterdammer": "groene.nl",
|
||||||
|
"Groupe EBRA (France)": "###_fr_groupe_ebra",
|
||||||
"Groupe Rossel (France/Belgium)": "###_fr_be_groupe_rossel",
|
"Groupe Rossel (France/Belgium)": "###_fr_be_groupe_rossel",
|
||||||
"Grupo Vocento (Spain, regional daily)": "###_es_grupo_vocento",
|
"Grupo Vocento (Spain, regional daily)": "###_es_grupo_vocento",
|
||||||
"Haaretz English": "haaretz.com",
|
"Haaretz English": "haaretz.com",
|
||||||
|
|
Loading…
Reference in a new issue