mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-12 01:10:24 +00:00
Add Groupe Centre France (opt-in to custom sites)
This commit is contained in:
parent
1cd2fe770c
commit
3a1887f1d1
@ -429,7 +429,6 @@ Grouped in options:\
|
||||
[L'Usine Nouvelle](https://www.usinenouvelle.com) -
|
||||
[La Croix](https://www.la-croix.com) -
|
||||
[La Libre](https://www.lalibre.be) -
|
||||
[La Montagne](https://www.lamontagne.fr) -
|
||||
[La Nouvelle République du Centre-Ouest](https://www.lanouvellerepublique.fr) -
|
||||
[La Tribune](https://www.latribune.fr) -
|
||||
[La Vie](https://www.lavie.fr) -
|
||||
@ -449,6 +448,8 @@ Grouped in options:\
|
||||
[Valeurs Actuelles](https://www.valeursactuelles.com)
|
||||
|
||||
Grouped in options:\
|
||||
*Groupe Centre France* sites like (opt-in to custom sites for unlisted)\
|
||||
[La Montagne](https://www.lamontagne.fr)\
|
||||
*Groupe EBRA* sites like\
|
||||
[Dernières Nouvelles d'Alsace](https://www.dna.fr) -
|
||||
[L'Alsace](https://www.lalsace.fr) -
|
||||
|
@ -358,7 +358,7 @@ ext_api.storage.local.get({
|
||||
} else {
|
||||
ext_api.management.getSelf(function (result) {
|
||||
if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) {
|
||||
let new_groups = ['###_de_westfalen_medien', '###_es_grupo_vocento', '###_es_unidad', '###_it_gedi', '###_nl_dpg_media', '###_usa_chronicle', '###_usa_genomeweb'];
|
||||
let new_groups = ['###_de_westfalen_medien', '###_es_grupo_vocento', '###_es_unidad', '###_fr_gcf', '###_it_gedi', '###_nl_dpg_media', '###_usa_chronicle', '###_usa_genomeweb'];
|
||||
let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain))) || (!enabledSites.includes('uol.com.br') && (enabledSites.includes('crusoe.uol.com.br') || enabledSites.includes('###_br_folha')));
|
||||
if (open_options)
|
||||
ext_api.runtime.openOptionsPage();
|
||||
@ -706,7 +706,6 @@ var block_js = [
|
||||
"*://js.matheranalytics.com/*",
|
||||
"*://js.pelcro.com/*",
|
||||
"*://loader-cdn.azureedge.net/prod/*/loader.min.js*",
|
||||
|
||||
];
|
||||
|
||||
// Disable javascript for these sites/general paywall-scripts
|
||||
@ -865,6 +864,11 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
var es_epiberica_domain = (url_hostname.startsWith('estaticos-cdn.') && ['script', 'font', 'stylesheet'].includes(details.type) && !matchUrlDomain(es_epiberica_domains, header_referer) && enabledSites.includes('###_es_epiberica'));
|
||||
if (es_epiberica_domain)
|
||||
es_epiberica_domains = customAddRules(es_epiberica_domains, {allow_cookies: 1}, blockedRegexes['epe.es']);
|
||||
} else if (header_referer_hostname.endsWith('.fr')) {
|
||||
// block Poool.fr for Groupe Centre France sites (opt-in to custom sites)
|
||||
var fr_gcf_domain = (details.url.match(/\.fr\/static\/bloc\/ripolinage\/header\/cf-header\//) && ['script', 'stylesheet'].includes(details.type) && !matchUrlDomain(fr_gcf_domains, header_referer) && enabledSites.includes('###_fr_gcf'));
|
||||
if (fr_gcf_domain)
|
||||
fr_gcf_domains = customAddRules(fr_gcf_domains, {allow_cookies: 1}, blockedRegexes['lamontagne.fr']);
|
||||
} else if (header_referer_hostname.endsWith('.nl')) {
|
||||
// block Evolok for Mediahuis Noord sites (opt-in to custom sites)
|
||||
var nl_mediahuis_noord_domain = (matchUrlDomain('ndcmediagroep.nl', details.url) && ['script'].includes(details.type) && !matchUrlDomain(nl_mediahuis_noord_domains, header_referer) && enabledSites.includes('###_nl_mediahuis_noord'));
|
||||
|
@ -2,6 +2,7 @@
|
||||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Groupe Centre France (opt-in to custom sites)
|
||||
Fix Business Standard
|
||||
Fix Hearst Communications (newspapers)
|
||||
Fix The Athletic
|
||||
|
@ -707,5 +707,5 @@
|
||||
"*://gcm.omerlocdn.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.8.5.3"
|
||||
"version": "2.8.5.4"
|
||||
}
|
||||
|
16
sites.js
16
sites.js
@ -604,6 +604,14 @@ var defaultSites = {
|
||||
allow_cookies: 1,
|
||||
remove_cookies: 1
|
||||
},
|
||||
"Groupe Centre France": {
|
||||
domain: "###_fr_gcf",
|
||||
group: [
|
||||
"lamontagne.fr"
|
||||
],
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.poool\.fr\//
|
||||
},
|
||||
"Groupe EBRA": {
|
||||
domain: "###_fr_groupe_ebra",
|
||||
group: [
|
||||
@ -966,11 +974,6 @@ var defaultSites = {
|
||||
allow_cookies: 1,
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"La Montagne": {
|
||||
domain: "lamontagne.fr",
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.poool\.fr\//
|
||||
},
|
||||
"La Nación": {
|
||||
domain: "lanacion.com.ar"
|
||||
},
|
||||
@ -2189,7 +2192,7 @@ var nl_mediahuis_region_domains = grouped_sites['###_nl_mediahuis_region'];
|
||||
var no_nhst_media_domains = grouped_sites['###_no_nhst_media'];
|
||||
|
||||
// custom domains (background)
|
||||
var au_comm_media_domains, au_thewest_domains, ca_gcm_domains, ca_postmedia_domains, ch_media_domains, cl_emol_region_domains, de_funke_medien_domains, de_madsack_domains, es_epiberica_domains, medium_custom_domains, nl_mediahuis_noord_domains, substack_custom_domains, usa_gannett_domains, usa_hearst_comm_domains, usa_lee_ent_domains, usa_madavor_domains, usa_mcc_domains, usa_mng_domains, usa_pei_domains, usa_townnews_domains;
|
||||
var au_comm_media_domains, au_thewest_domains, ca_gcm_domains, ca_postmedia_domains, ch_media_domains, cl_emol_region_domains, de_funke_medien_domains, de_madsack_domains, es_epiberica_domains, fr_gcf_domains, medium_custom_domains, nl_mediahuis_noord_domains, substack_custom_domains, usa_gannett_domains, usa_hearst_comm_domains, usa_lee_ent_domains, usa_madavor_domains, usa_mcc_domains, usa_mng_domains, usa_pei_domains, usa_townnews_domains;
|
||||
|
||||
function init_custom_domains() {
|
||||
au_comm_media_domains = grouped_sites['###_au_comm_media'];
|
||||
@ -2201,6 +2204,7 @@ function init_custom_domains() {
|
||||
de_funke_medien_domains = grouped_sites['###_de_funke_medien'];
|
||||
de_madsack_domains = grouped_sites['###_de_madsack'];
|
||||
es_epiberica_domains = grouped_sites['###_es_epiberica'];
|
||||
fr_gcf_domains = grouped_sites['###_fr_gcf'];
|
||||
medium_custom_domains = grouped_sites['###_medium_custom'];
|
||||
nl_mediahuis_noord_domains = [];
|
||||
substack_custom_domains = [];
|
||||
|
Loading…
Reference in New Issue
Block a user