Add group Mediahuis Nederland Regional

This commit is contained in:
magnolia1234 2021-06-20 21:41:11 +02:00
parent df1730c8a6
commit a16b569288
6 changed files with 34 additions and 22 deletions

View File

@ -372,14 +372,6 @@ Grouped in options:\
[Quotidiano di Puglia](https://www.quotidianodipuglia.it)
##### Netherlands/Flanders
[Algemeen Dagblad](https://www.ad.nl) and regional ADR sites (grouped in options) like
[BN DeStem](https://www.bndestem.nl) -
[Brabants Dagblad](https://www.bd.nl) -
[Eindhovens Dagblad](https://www.ed.nl) -
[Gelderlander](https://www.gelderlander.nl) -
[PZC](https://www.pzc.nl) -
[Stentor](https://www.destentor.nl) -
[Tubantia](https://tubantia.nl)
[Dagblad van het Noorden](https://www.dvhn.nl) -
[De Morgen](https://www.demorgen.be) -
[De Tijd](https://www.tijd.be) -
@ -390,13 +382,28 @@ Grouped in options:\
[Humo.be](https://www.humo.be) -
[Knack.be](https://www.knack.be) -
[Leeuwarder Courant](https://www.lc.nl) -
[Noordhollands Dagblad](https://www.noordhollandsdagblad.nl) -
[NRC Handelsblad](https://www.nrc.nl) -
[Parool](https://www.parool.nl) -
[Telegraaf](https://www.telegraaf.nl) -
[Trouw](https://www.trouw.nl) -
[Volkskrant](https://www.volkskrant.nl)
Grouped in options:\
[Algemeen Dagblad](https://www.ad.nl) and regional ADR sites like
[BN DeStem](https://www.bndestem.nl) -
[Brabants Dagblad](https://www.bd.nl) -
[Eindhovens Dagblad](https://www.ed.nl) -
[Gelderlander](https://www.gelderlander.nl) -
[PZC](https://www.pzc.nl) -
[Stentor](https://www.destentor.nl) -
[Tubantia](https://tubantia.nl)\
Mediahuis Nederland Regional sites like
[Noordhollands Dagblad](https://www.noordhollandsdagblad.nl) -
[Haarlems Dagblad](https://www.haarlemsdagblad.nl) -
[Leidsch Dagblad](https://www.leidschdagblad.nl) -
[IJmuider Courant](https://www.ijmuidercourant.nl) -
[De Gooi- en Eemlander](https://www.gooieneemlander.nl)
##### Portugal
[Correio da Manhã](https://www.cmjornal.pt) -
[Observador](https://observador.pt)

View File

@ -116,7 +116,6 @@ var allow_cookies_default = [
'newleftreview.org',
'newrepublic.com',
'newsday.com',
'noordhollandsdagblad.nl',
'nouvelobs.com',
'noz.de',
'nwzonline.de',
@ -451,6 +450,7 @@ var grouped_sites = {
'###_fr_groupe_la_depeche': fr_groupe_la_depeche_domains,
'###_it_ilmessaggero': it_ilmessaggero_domains,
'###_nl_ad_region': nl_ad_region_domains,
'###_nl_mediahuis_region': nl_mediahuis_region_domains,
'###_timesofindia': timesofindia_domains,
'###_usa_crainsbiz': usa_crainsbiz_domains,
'###_usa_mcc': usa_mcc_domains,
@ -538,6 +538,8 @@ function add_grouped_sites(init_rules) {
blockedRegexes[domain] = /utils\.cedsdigital\.it\/js\/PaywallMeter\.js/;
for (let domain of nl_ad_region_domains)
remove_cookies_select_drop[domain] = ['temptationTrackingId'];
for (let domain of nl_mediahuis_region_domains)
allow_cookies.push(domain);
for (let domain of timesofindia_domains) {
allow_cookies.push(domain);
use_google_bot.push(domain);

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add group Mediahuis Nederland Regional
Remove The Northern Star (obsolete)
Fix Atlantico.fr
Fix Boston Globe (no opt-in)

View File

@ -11,6 +11,7 @@ var es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.e
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 it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'lanuovasardegna.it', 'lastampa.it', 'limesonline.com', 'repubblica.it'];
var nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl'];
var usa_crainsbiz_domains = ['chicagobusiness.com', 'crainscleveland', 'crainsdetroit', 'crainsnewyork.com'];
var usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com'];
var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com'];
@ -1210,7 +1211,7 @@ else if (matchDomain(["lc.nl", "dvhn.nl"])) {
removeDOMElement(top_ad, plus);
}
else if (matchDomain('noordhollandsdagblad.nl')) {
else if (matchDomain(nl_mediahuis_region_domains)) {
window.setTimeout(function () {
let close_button = document.querySelector('button[data-testid="button-close"]');
if (close_button)
@ -1223,7 +1224,7 @@ else if (matchDomain('noordhollandsdagblad.nl')) {
let paywall = document.querySelector('div[data-auth-root="paywall"]');
removeDOMElement(paywall);
let auth_body = document.querySelector('div[data-auth-body="article"]');
if (auth_body) {
if (paywall && auth_body) {
let auth_body_par_count = auth_body.querySelectorAll('p');
if (auth_body_par_count.length < 2) {
let url = window.location.href;
@ -1231,16 +1232,12 @@ else if (matchDomain('noordhollandsdagblad.nl')) {
let split1 = html.split('window["__PRELOADED_STATE_GRAPH__')[1].split(/=(.+)/)[1];
let split2 = split1.split('</script>')[0].trim();
let split3 = split2.split('"body":')[1];
let state = split3.split('},"')[0] + '}';
let state = split3.split('},"gal')[0] + '}';
try {
let data = JSON.parse(state);
let article = data.json;
auth_body.innerHTML = '';
let par_html,
par_dom,
par_elem,
par_div,
par_key;
let par_html, par_dom, par_elem, par_div, par_key;
let parser = new DOMParser();
for (let par of article) {
for (let key in par) {
@ -1295,7 +1292,7 @@ else if (matchDomain('noordhollandsdagblad.nl')) {
}
}
} catch (err) {
console.warn('unable to parse noordhollands dagblad text');
console.warn('unable to parse text');
console.warn(err);
}
}

View File

@ -189,6 +189,7 @@
"*://*.globes.co.il/*",
"*://*.globo.com/*",
"*://*.goldcoastbulletin.com.au/*",
"*://*.gooieneemlander.nl/*",
"*://*.griffithreview.com/*",
"*://*.groene.nl/*",
"*://*.grubstreet.com/*",
@ -196,6 +197,7 @@
"*://*.gympietimes.com.au/*",
"*://*.haaretz.co.il/*",
"*://*.haaretz.com/*",
"*://*.haarlemsdagblad.nl/*",
"*://*.handelsblatt.com/*",
"*://*.harpers.org/*",
"*://*.haz.de/*",
@ -210,6 +212,7 @@
"*://*.hs.fi/*",
"*://*.humo.be/*",
"*://*.ideal.es/*",
"*://*.ijmuidercourant.nl/*",
"*://*.ilfattoquotidiano.it/*",
"*://*.ilgazzettino.it/*",
"*://*.ilgiorno.it/*",
@ -264,6 +267,7 @@
"*://*.lecho.be/*",
"*://*.ledauphine.com/*",
"*://*.ledevoir.com/*",
"*://*.leidschdagblad.nl/*",
"*://*.lejdd.fr/*",
"*://*.lejsl.com/*",
"*://*.leparisien.fr/*",
@ -525,5 +529,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.2.5.6"
"version": "2.2.5.7"
}

View File

@ -166,6 +166,7 @@ var defaultSites =
"Madsack Mediengruppe (Germany)": "###_de_madsack",
"MarketWatch": "marketwatch.com",
"McClatchy Group": "###_usa_mcc",
"Mediahuis Nederland Regional": "###_nl_mediahuis_region",
"MediaNama": "medianama.com",
"Medium": "medium.com",
"Medium custom domains": "###_medium_custom",
@ -188,7 +189,6 @@ var defaultSites =
"Newsweek": "newsweek.com",
"Nikkei Asian Review": "asia.nikkei.com",
"NK News (free articles only)": "nknews.org",
"Noordhollands Dagblad": "noordhollandsdagblad.nl",
"Nordwest Zeitung": "nwzonline.de",
"NRC Handelsblad": "nrc.nl",
"NyTeknik": "nyteknik.se",
@ -339,6 +339,7 @@ const fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr',
const fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midi-olympique.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.fr'];
const it_ilmessaggero_domains = ['corriereadriatico.it', 'ilgazzettino.it', 'ilmattino.it', 'ilmessaggero.it', 'quotidianodipuglia.it'];
const nl_ad_region_domains = ['ad.nl', 'bd.nl', 'ed.nl', 'tubantia.nl', 'bndestem.nl', 'pzc.nl', 'destentor.nl', 'gelderlander.nl'];
const nl_mediahuis_region_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl'];
const timesofindia_domains = ['timesofindia.com', 'timesofindia.indiatimes.com'];
const usa_crainsbiz_domains = ['chicagobusiness.com', 'crainscleveland', 'crainsdetroit', 'crainsnewyork.com'];
const usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com'];
@ -347,4 +348,4 @@ const usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.
const usa_theathletic_domains = ['theathletic.com', 'theathletic.co.uk'];
var defaultSites_grouped_domains = Object.values(defaultSites);
var defaultSites_domains = defaultSites_grouped_domains.concat(au_comm_media_domains, au_news_corp_domains, au_prov_news_domains, br_folha_domains, ca_torstar_domains, de_funke_media_domains, de_madsack_domains, economictimes_domains, es_grupo_vocento_domains, fi_alma_talent_domains, fr_be_groupe_rossel_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_ilmessaggero_domains, nl_ad_region_domains, timesofindia_domains, usa_crainsbiz_domains, usa_mcc_domains, usa_nymag_domains, usa_tribune_domains, usa_theathletic_domains);
var defaultSites_domains = defaultSites_grouped_domains.concat(au_comm_media_domains, au_news_corp_domains, au_prov_news_domains, br_folha_domains, ca_torstar_domains, de_funke_media_domains, de_madsack_domains, economictimes_domains, es_grupo_vocento_domains, fi_alma_talent_domains, fr_be_groupe_rossel_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_ilmessaggero_domains, nl_ad_region_domains, nl_mediahuis_region_domains, timesofindia_domains, usa_crainsbiz_domains, usa_mcc_domains, usa_nymag_domains, usa_tribune_domains, usa_theathletic_domains);