mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Add Groupe Capitales Medias (+ regional/opt-in to custom sites)
This commit is contained in:
parent
9c98053c81
commit
2ef818f51f
@ -846,7 +846,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
nl_mediahuis_noord_domains = customAddRules(nl_mediahuis_noord_domains, {allow_cookies: 1}, blockedRegexes['lc.nl']);
|
||||
} else if (header_referer_hostname.match(/\.(ca|com|org)$/)) {
|
||||
// remove cookies for Groupe Capitales Médias sites
|
||||
var ca_gcm_domain = (matchUrlDomain('gcm.omerlocdn.com', details.url) && ['xmlhttprequest'].includes(details.type) && !matchUrlDomain(ca_gcm_domains, header_referer) && enabledSites.includes('lesoleil.com'));
|
||||
var ca_gcm_domain = (matchUrlDomain('gcm.omerlocdn.com', details.url) && ['xmlhttprequest'].includes(details.type) && !matchUrlDomain(ca_gcm_domains, header_referer) && enabledSites.includes('###_ca_gcm'));
|
||||
if (ca_gcm_domain)
|
||||
ca_gcm_domains = customAddRules(ca_gcm_domains, {allow_cookies: 1, remove_cookies: 1});
|
||||
else {
|
||||
|
@ -4,7 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||
Post-release
|
||||
Add Crusoe (Brazil)
|
||||
Add Golem.de
|
||||
Add Le Soleil - Quebec (+ regional/opt-in to custom sites)
|
||||
Add Groupe Capitales Medias (+ regional/opt-in to custom sites)
|
||||
Remove Kurier.at (fix obsolete)
|
||||
Fix Belfast Telegraph/Independent.ie (css)
|
||||
Fix Bloomberg (graphics)
|
||||
|
@ -5,7 +5,7 @@ var csDone = false;
|
||||
var csDoneOnce = false;
|
||||
var dompurify_loaded = (typeof DOMPurify === 'function');
|
||||
|
||||
var ca_gcm_custom_domains = ['latribune.ca', 'lavoixdelest.ca', 'ledroit.com', 'ledroitfranco.com', 'lenouvelliste.ca', 'lequotidien.com'];
|
||||
var ca_gcm_domains = ['lesoleil.com'].concat(['latribune.ca', 'lavoixdelest.ca', 'ledroit.com', 'ledroitfranco.com', 'lenouvelliste.ca', 'lequotidien.com']);
|
||||
var ca_torstar_domains = ['niagarafallsreview.ca', 'stcatharinesstandard.ca', 'thepeterboroughexaminer.com', 'therecord.com', 'thespec.com', 'thestar.com', 'wellandtribune.ca'];
|
||||
var de_funke_media_domains = ['abendblatt.de', 'braunschweiger-zeitung.de', 'morgenpost.de', 'nrz.de', 'otz.de', 'thueringer-allgemeine.de', 'tlz.de', 'waz.de', 'wp.de', 'wr.de'];
|
||||
var de_madsack_domains = ['haz.de', 'kn-online.de', 'ln-online.de', 'lvz.de', 'maz-online.de', 'neuepresse.de', 'ostsee-zeitung.de', 'rnd.de'];
|
||||
@ -37,7 +37,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition
|
||||
var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com'];
|
||||
|
||||
// clean local storage of sites (with an exemption for hold-list)
|
||||
var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, [ 'lesoleil.com'].concat(ca_gcm_custom_domains), nl_pg_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||
var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, ca_gcm_domains, nl_pg_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||
if (!matchDomain(arr_localstorage_hold)) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
@ -2712,6 +2712,18 @@ else if (matchDomain('businessoffashion.com')) {
|
||||
removeDOMElement(...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain(ca_gcm_domains)) {
|
||||
let paywall = document.querySelector('div._block_1dgevo');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
window.setTimeout(function () {
|
||||
window.location.reload(true);
|
||||
}, 500);
|
||||
}
|
||||
let counter = document.querySelector('div#paywall-banner-content');
|
||||
removeDOMElement(counter);
|
||||
}
|
||||
|
||||
else if (matchDomain(ca_torstar_domains)) {
|
||||
window.setTimeout(function () {
|
||||
let meter_banner = document.querySelector('.c-article-meter-banner');
|
||||
@ -3153,18 +3165,6 @@ else if (matchDomain('ledevoir.com')) {
|
||||
removeDOMElement(counter);
|
||||
}
|
||||
|
||||
else if (matchDomain(['lesoleil.com'].concat(ca_gcm_custom_domains))) {
|
||||
let paywall = document.querySelector('div._block_1dgevo');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
window.setTimeout(function () {
|
||||
window.location.reload(true);
|
||||
}, 500);
|
||||
}
|
||||
let counter = document.querySelector('div#paywall-banner-content');
|
||||
removeDOMElement(counter);
|
||||
}
|
||||
|
||||
else if (matchDomain('livelaw.in')) {
|
||||
let paywall = document.querySelector('div#subscription_paid_message, div.subscribeNow');
|
||||
if (paywall) {
|
||||
|
15
sites.js
15
sites.js
@ -606,6 +606,14 @@ var defaultSites = {
|
||||
domain: "groene.nl",
|
||||
remove_cookies_select_hold: ["accept-cookies", "popunder-hidden"]
|
||||
},
|
||||
"Groupe Capitales Médias (+ regional/opt-in to custom sites)": {
|
||||
domain: "###_ca_gcm",
|
||||
group: [
|
||||
"lesoleil.com"
|
||||
],
|
||||
allow_cookies: 1,
|
||||
remove_cookies: 1
|
||||
},
|
||||
"Groupe EBRA": {
|
||||
domain: "###_fr_groupe_ebra",
|
||||
group: [
|
||||
@ -1041,11 +1049,6 @@ var defaultSites = {
|
||||
domain: "lescienze.it",
|
||||
group_rule: "###_gr_it_repubblica_domains"
|
||||
},
|
||||
"Le Soleil - Quebec (+ regional/opt-in to custom sites)": {
|
||||
domain: "lesoleil.com",
|
||||
allow_cookies: 1,
|
||||
remove_cookies: 1
|
||||
},
|
||||
"Le Télégramme": {
|
||||
domain: "letelegramme.fr",
|
||||
allow_cookies: 1,
|
||||
@ -2191,7 +2194,7 @@ expandSiteRules(defaultSites);
|
||||
var au_comm_media_domains = grouped_sites['###_au_comm_media'];
|
||||
var au_news_corp_domains = grouped_sites['###_au_news_corp'];
|
||||
var be_mediahuis_domains = grouped_sites['###_be_mediahuis'];
|
||||
var ca_gcm_domains = ['lesoleil.com'];
|
||||
var ca_gcm_domains = grouped_sites['###_ca_gcm'];
|
||||
var fr_groupe_sud_ouest_domains = grouped_sites['###_fr_groupe_sud_ouest'];
|
||||
var it_repubblica_domains = defaultSites['###_gr_it_repubblica_domains']['group_rule_domains'];
|
||||
var medium_custom_domains = grouped_sites['###_medium_custom'];
|
||||
|
Loading…
Reference in New Issue
Block a user