Add Groupe Nice-Matin (France)

This commit is contained in:
magnolia1234 2021-12-31 11:50:38 +01:00
parent ea260f62fc
commit 5c844d9439
6 changed files with 55 additions and 6 deletions

View File

@ -359,7 +359,11 @@ Grouped in options:\
[La Nouvelle République des Pyrénées](https://www.nrpyrenees.fr) - [La Nouvelle République des Pyrénées](https://www.nrpyrenees.fr) -
[Le Petit Bleu d'Agen](https://www.petitbleu.fr) - [Le Petit Bleu d'Agen](https://www.petitbleu.fr) -
[Midi Libre](https://www.midilibre.fr) - [Midi Libre](https://www.midilibre.fr) -
[Midi Olympique](https://www.midi-olympique.fr) [Midi Olympique](https://www.midi-olympique.fr)\
*Groupe Nice-Matin* sites like\
[Monaco-Matin](https://www.monacomatin.mc) -
[Nice-Matin](https://www.nicematin.com) -
[Var-Matin](https://www.varmatin.com)\
*Groupe Rossel* sites like\ *Groupe Rossel* sites 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) -

View File

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Add Capital Gazette (local USA) Add Capital Gazette (local USA)
Add Groupe Nice-Matin (France)
Add Il Foglio (Italy) Add Il Foglio (Italy)
Fix group Tribune Publishing Company (js) Fix group Tribune Publishing Company (js)
Update popup (permission to clear cookies) Update popup (permission to clear cookies)

View File

@ -14,6 +14,7 @@ var es_unidad_domains = ['elmundo.es', 'expansion.com', 'marca.com'];
var fi_alma_talent_domains = ['arvopaperi.fi', 'iltalehti.fi', 'kauppalehti.fi', 'marmai.fi', 'mediuutiset.fi', 'mikrobitti.fi', 'talouselama.fi', 'tekniikkatalous.fi', 'tivi.fi', 'uusisuomi.fi']; var fi_alma_talent_domains = ['arvopaperi.fi', 'iltalehti.fi', 'kauppalehti.fi', 'marmai.fi', 'mediuutiset.fi', 'mikrobitti.fi', 'talouselama.fi', 'tekniikkatalous.fi', 'tivi.fi', 'uusisuomi.fi'];
var fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', 'lalsace.fr', 'ledauphine.com', 'lejsl.com', 'leprogres.fr', 'republicain-lorrain.fr', 'vosgesmatin.fr']; var fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', 'lalsace.fr', 'ledauphine.com', 'lejsl.com', 'leprogres.fr', 'republicain-lorrain.fr', 'vosgesmatin.fr'];
var fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midi-olympique.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.fr']; var fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midi-olympique.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.fr'];
var fr_groupe_nice_matin_domains = ['monacomatin.mc', 'nicematin.com', 'varmatin.com'];
var it_ilmessaggero_domains = ['corriereadriatico.it', 'ilgazzettino.it', 'ilmattino.it', 'ilmessaggero.it', 'quotidianodipuglia.it']; var it_ilmessaggero_domains = ['corriereadriatico.it', 'ilgazzettino.it', 'ilmattino.it', 'ilmessaggero.it', 'quotidianodipuglia.it'];
var it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'italian.tech', 'lanuovasardegna.it', 'lastampa.it', 'repubblica.it']; var it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'italian.tech', 'lanuovasardegna.it', 'lastampa.it', 'repubblica.it'];
var it_quotidiano_domains = ['ilgiorno.it', 'ilrestodelcarlino.it', 'iltelegrafolivorno.it', 'lanazione.it', 'quotidiano.net']; var it_quotidiano_domains = ['ilgiorno.it', 'ilrestodelcarlino.it', 'iltelegrafolivorno.it', 'lanazione.it', 'quotidiano.net'];
@ -28,7 +29,7 @@ var usa_mng_domains = ['denverpost.com', 'eastbaytimes.com', 'mercurynews.com'
var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com']; 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) // clean local storage of sites (with an exemption for hold-list)
var arr_localstorage_hold = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'businessoffashion.com', 'charliehebdo.fr', 'cmjornal.pt', 'expressnews.com', 'fortune.com', 'houstonchronicle.com', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'].concat(de_funke_media_domains, es_grupo_vocento_domains, es_unidad_domains, no_nhst_media_domains); var arr_localstorage_hold = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'businessoffashion.com', 'charliehebdo.fr', 'cmjornal.pt', 'expressnews.com', 'fortune.com', 'houstonchronicle.com', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'].concat(de_funke_media_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, no_nhst_media_domains);
if (!matchDomain(arr_localstorage_hold)) { if (!matchDomain(arr_localstorage_hold)) {
window.localStorage.clear(); window.localStorage.clear();
} }
@ -960,7 +961,7 @@ else if (matchDomain('politicaexterior.com')) {
else else
csDone = true; csDone = true;
} else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'journaldunet.com', 'la-croix.com', 'ledauphine.com', 'ledevoir.com', 'lesinrocks.com', 'lejsl.com', 'loeildelaphotographie.com', 'marianne.net', 'nouvelobs.com', 'parismatch.com', 'science-et-vie.com'])) {//france } else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'journaldunet.com', 'la-croix.com', 'ledauphine.com', 'ledevoir.com', 'lesinrocks.com', 'lejsl.com', 'loeildelaphotographie.com', 'marianne.net', 'nouvelobs.com', 'parismatch.com', 'science-et-vie.com'].concat(fr_groupe_nice_matin_domains))) {//france
if (matchDomain('alternatives-economiques.fr')) { if (matchDomain('alternatives-economiques.fr')) {
window.setTimeout(function () { window.setTimeout(function () {
@ -1049,6 +1050,20 @@ else if (domain = matchDomain(fr_groupe_la_depeche_domains)) {
} }
} }
else if (domain = matchDomain(fr_groupe_nice_matin_domains)) {
let url = window.location.href;
let url_new = url.replace(domain + '/', domain + '/amp/');
if (url.includes(domain + '/amp/')) {
amp_unhide_access_hide('="access"', '="NOT access"', 'amp-ad, amp-embed');
} else {
let paywall = document.querySelector('div#article-teaser');
if (paywall)
paywall.removeAttribute('id');
}
let ads = document.querySelectorAll('div[class^="ad-slot-"]');
removeDOMElement(...ads);
}
else if (matchDomain('journaldunet.com')) { else if (matchDomain('journaldunet.com')) {
let reg_wall = document.querySelector('.reg_wall'); let reg_wall = document.querySelector('.reg_wall');
removeDOMElement(reg_wall); removeDOMElement(reg_wall);

View File

@ -358,6 +358,7 @@
"*://*.mikrobitti.fi/*", "*://*.mikrobitti.fi/*",
"*://*.mlive.com/*", "*://*.mlive.com/*",
"*://*.modernhealthcare.com/*", "*://*.modernhealthcare.com/*",
"*://*.monacomatin.mc/*",
"*://*.morgenpost.de/*", "*://*.morgenpost.de/*",
"*://*.mv-voice.com/*", "*://*.mv-voice.com/*",
"*://*.mz.de/*", "*://*.mz.de/*",
@ -376,6 +377,7 @@
"*://*.newsweek.com/*", "*://*.newsweek.com/*",
"*://*.newyorker.com/*", "*://*.newyorker.com/*",
"*://*.niagarafallsreview.ca/*", "*://*.niagarafallsreview.ca/*",
"*://*.nicematin.com/*",
"*://*.nikkei.com/*", "*://*.nikkei.com/*",
"*://*.nj.com/*", "*://*.nj.com/*",
"*://*.nknews.org/*", "*://*.nknews.org/*",
@ -539,6 +541,7 @@
"*://*.valeursactuelles.com/*", "*://*.valeursactuelles.com/*",
"*://*.vanityfair.com/*", "*://*.vanityfair.com/*",
"*://*.variety.com/*", "*://*.variety.com/*",
"*://*.varmatin.com/*",
"*://*.velonews.com/*", "*://*.velonews.com/*",
"*://*.venturebeat.com/*", "*://*.venturebeat.com/*",
"*://*.vn.nl/*", "*://*.vn.nl/*",
@ -600,5 +603,5 @@
"*://*.wsj.net/*", "*://*.wsj.net/*",
"*://*.zephr.com/*" "*://*.zephr.com/*"
], ],
"version": "2.4.9.3" "version": "2.4.9.4"
} }

View File

@ -573,7 +573,7 @@ var defaultSites = {
"vosgesmatin.fr" "vosgesmatin.fr"
], ],
allow_cookies: 1, allow_cookies: 1,
block_regex: /(\.poool\.fr\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/ block_regex: /(\.poool\.fr\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/
}, },
"Groupe La Dépêche": { "Groupe La Dépêche": {
domain: "###_fr_groupe_la_depeche", domain: "###_fr_groupe_la_depeche",
@ -587,7 +587,17 @@ var defaultSites = {
"petitbleu.fr" "petitbleu.fr"
], ],
allow_cookies: 1, allow_cookies: 1,
block_regex: /(\.poool\.fr\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent|subscriptions)-.+\.js)/ block_regex: /(\.poool\.fr\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad|subscriptions)-.+\.js)/
},
"Groupe Nice-Matin": {
domain: "###_fr_groupe_nice_matin",
group: [
"monacomatin.mc",
"nicematin.com",
"varmatin.com"
],
allow_cookies: 1,
block_regex: /(\.poool\.fr\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
}, },
"Groupe Rossel": { "Groupe Rossel": {
domain: "###_fr_be_groupe_rossel", domain: "###_fr_be_groupe_rossel",

View File

@ -8,6 +8,22 @@
"amp_unhide": 1, "amp_unhide": 1,
"block_regex": "(cdn\\.cxense\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-((sticky-)?ad|subscriptions)-.+\\.js)" "block_regex": "(cdn\\.cxense\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-((sticky-)?ad|subscriptions)-.+\\.js)"
}, },
"Groupe Nice-Matin": {
"domain": "###_fr_groupe_nice_matin",
"group": [
"monacomatin.mc",
"nicematin.com",
"varmatin.com"
],
"allow_cookies": 1,
"amp_unhide": 1,
"block_regex": "(\\.poool\\.fr\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js)",
"cs_code": [{
"cond": "div#article-teaser",
"rm_attrib": "id"
}
]
},
"Il Foglio": { "Il Foglio": {
"domain": "ilfoglio.it", "domain": "ilfoglio.it",
"allow_cookies": 1, "allow_cookies": 1,