Add Ruhr Nachrichten

This commit is contained in:
magnolia1234 2023-07-24 18:33:33 +02:00
parent 8abc9e2cf0
commit 1cea6d43ee
8 changed files with 66 additions and 104 deletions

View file

@ -600,6 +600,8 @@ Grouped in options:\
[Neue Presse (Hannover)](https://www.neuepresse.de) -
[Ostsee-Zeitung](https://www.ostsee-zeitung.de) -
[RedaktionsNetzwerk Deutschland](https://www.rnd.de)\
*[Media Group Westfalen](https://mgw.de/portfolio/tageszeitungen)* sites like (opt-in to custom sites for unlisted)\
[Ruhr Nachrichten](https://www.ruhrnachrichten.de)\
*Medienholding Süd* sites like (opt-in to custom sites for unlisted)\
[Schwarzwälder Bote](https://www.schwarzwaelder-bote.de) -
[Stuttgarter Nachrichten](https://www.stuttgarter-nachrichten.de) -

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Add Ruhr Nachrichten (+ Media Group Westfalen; opt-in to custom sites)
* v3.2.6.0 (2023-07-23)
Add Auto-motor-und-sport.de

View file

@ -51,7 +51,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 = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'business-standard.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'gauchazh.clicrbs.com.br', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nrc.nl', 'nw.de', 'nwzonline.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'tes.com', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'uol.com.br', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, de_funke_medien_domains, de_lv_domains, de_vrm_domains, de_vrm_custom_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains);
var arr_localstorage_hold = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'business-standard.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'gauchazh.clicrbs.com.br', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nrc.nl', 'nw.de', 'nwzonline.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'ruhrnachrichten.de', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'tes.com', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'uol.com.br', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, de_funke_medien_domains, de_lv_domains, de_vrm_domains, de_vrm_custom_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains);
if (!matchDomain(arr_localstorage_hold)) {
window.localStorage.clear();
}
@ -303,12 +303,10 @@ if (ext_api.runtime) {
if (matchDomain('medium.com') || matchDomain(medium_custom_domains) || document.querySelector('script[src*=".medium.com/"]')) {
let url = window.location.href;
let paywall = document.querySelector('section button[aria-label="Member-only story"]');
let paywall = document.querySelector('article.meteredContent');
if (paywall) {
paywall.removeAttribute('aria-label');
let article = document.querySelector('article');
if (article)
article.firstChild.before(googleWebcacheLink(url));
paywall.removeAttribute('class');
paywall.firstChild.before(googleWebcacheLink(url));
}
window.setTimeout(function () {
let banner = pageContains('div > h2 > div, div > div > h2', /(Read (the full story with|this story from)|Get unlimited access to)/);
@ -1121,6 +1119,38 @@ else if (matchDomain(de_madsack_domains) || document.querySelector('link[href*="
}
}
else if (matchDomain('ruhrnachrichten.de') || document.querySelector('div.mgw-integration > a.mgw__link')) {
let paywall = document.querySelector('body.is_plus_article');
if (paywall && dompurify_loaded) {
paywall.classList.remove('is_plus_article');
let json_url_dom = document.querySelector('link[rel="alternate"][type="application/json"][href]');
let json_url = json_url_dom.href;
fetch(json_url)
.then(response => {
if (response.ok) {
response.json().then(json => {
let json_text = json.content.rendered;
let content = document.querySelector('article');
if (json_text && content) {
let parser = new DOMParser();
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe']}) + '</div>', 'text/html');
let content_new = doc.querySelector('div');
content.appendChild(content_new);
}
});
}
});
}
let ads = document.querySelector('div.OUTBRAIN');
removeDOMElement(ads);
if (!matchDomain('ruhrnachrichten.de')) {
window.setTimeout(function () {
let push = document.querySelector('div.cleverpush-bell');
removeDOMElement(push);
}, 1000);
}
}
else if (matchDomain(de_vrm_domains) || matchDomain(de_vrm_custom_domains)) {
let url = window.location.href;
let paywall = document.querySelector('div.storyElementWrapper__paywallContainer');
@ -3809,6 +3839,8 @@ else if (matchDomain('euromoney.com')) {
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
replaceDomElementExt(url_cache, true, false, 'div.Paywall-content');
}
let fade = document.querySelector('div[style*="background-image: linear-gradient"]');
removeDOMElement(fade);
}
else if (matchDomain('fieldandstream.com')) {
@ -5604,7 +5636,7 @@ function getArticleJsonScript() {
}
function findKeyJson(json, keys, min_val_len = 0) {
let source;
let source = '';
if (Array.isArray(json)) {
for (let elem of json)
source = source || findKeyJson(json[elem], keys, min_val_len);

View file

@ -55,20 +55,22 @@ window.setTimeout(function () {
if (document.querySelector('meta[property="og:image"][content*="/impresa.soy-chile.cl/"]'))
group = 'elmercurio.com';
} else if (hostname.match(/\.(de|at|ch)$/) || matchDomain(['horizont.net', 'lebensmittelzeitung.net'])) {
if (document.querySelector('script[data-cmp-src*=".funkedigital.de/"], div#fmg-markenanker > a[href="https://www.funkemedien.de/"]'))
if (document.querySelector('script[src*="/dfv.containers.piwik.pro/"]'))
group = '###_de_dfv_medien';
else if (document.querySelector('script[data-cmp-src*=".funkedigital.de/"], div#fmg-markenanker > a[href="https://www.funkemedien.de/"]'))
group = '###_de_funke_medien';
else if (document.querySelector('div.navigation__personalization > a[href^="https://www.haas-mediengruppe.de/"]'))
group = '###_de_haas_medien';
else if (document.querySelector('link[href*=".rndtech.de/"]'))
group = '###_de_madsack';
else if (document.querySelector('script[src*="/dfv.containers.piwik.pro/"]'))
group = '###_de_dfv_medien';
else if (document.querySelector('div.mgw-integration > a.mgw__link'))
group = '###_de_mgw';
else if (matchDomain(['cannstatter-zeitung.de', 'esslinger-zeitung.de', 'frankenpost.de', 'insuedthueringen.de', 'krzbb.de', 'kurier.de', 'np-coburg.de', 'verlagshaus-jaumann.de']))
group = '###_de_mhs';
else if (matchDomain(['aachener-nachrichten.de', 'aachener-zeitung.de', 'ga.de', 'rp-online.de', 'saarbruecker-zeitung.de', 'volksfreund.de']))
group = '###_de_rp_aachen_medien';// no fix
else if (matchDomain(['buerstaedter-zeitung.de', 'hochheimer-zeitung.de', 'lampertheimer-zeitung.de', 'lauterbacher-anzeiger.de', 'main-spitze.de', 'mittelhessen.de', 'oberhessische-zeitung.de', 'wormser-zeitung.de']))
group = '###_de_vrm';
else if (matchDomain(['cannstatter-zeitung.de', 'esslinger-zeitung.de', 'frankenpost.de', 'insuedthueringen.de', 'krzbb.de', 'kurier.de', 'np-coburg.de', 'verlagshaus-jaumann.de']))
group = '###_de_mhs';
else if (document.querySelector('link[href*="/assets.static-chmedia.ch/"]'))
group = 'nzz.ch';
else if (document.querySelector('link[href*=".tamedia.ch/"]'))

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.2.6.0"
"version": "3.2.6.1"
}

View file

@ -552,6 +552,7 @@
"*://*.rollingstone.com/*",
"*://*.rugbypass.com/*",
"*://*.rugbyrama.fr/*",
"*://*.ruhrnachrichten.de/*",
"*://*.rundschau-online.de/*",
"*://*.runnersworld.com/*",
"*://*.sabado.pt/*",
@ -768,5 +769,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.2.6.0"
"version": "3.2.6.1"
}

View file

@ -1361,6 +1361,15 @@ var defaultSites = {
],
block_regex: "(\\.{domain}\\/script\\.js|js\\.matheranalytics\\.com|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)"
},
"Media Group Westfalen": {
domain: "###_de_mgw",
group: [
"ruhrnachrichten.de"
],
allow_cookies: 1,
block_regex: /\.tinypass\.com\//,
cs_dompurify: 1
},
"Mediahuis Nederland Regional": {
domain: "###_nl_mediahuis_region",
group: [
@ -2610,4 +2619,4 @@ init_custom_flex_domains();
// sites with no fix (background)
var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com', 'repubblica.it'];
var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftonbladet.se', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'lefigaro.fr', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nationaljournal.com', 'manager-magazin.de', 'mz.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'ruhrnachrichten.de', 'saechsische.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'volksstimme.de', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(it_gedi_nofix_domains);
var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftonbladet.se', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'bloomberglaw.com', 'bloombergtax.com', 'borsen.dk', 'businessinsider.de', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'compactmag.com', 'courrierinternational.com', 'deutsche-wirtschafts-nachrichten.de', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'gamestar.de', 'geo.de', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'lefigaro.fr', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lemonde.fr', 'lepoint.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'moneycontrol.com', 'morningstar.com', 'nationaljournal.com', 'manager-magazin.de', 'mz.de', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'sueddeutsche.de', 'suedkurier.de', 'swp.de', 'tagesspiegel.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'volksstimme.de', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(it_gedi_nofix_domains);

View file

@ -27,12 +27,6 @@
"allow_cookies": 1,
"block_regex": "\\.auto-motor-und-sport\\.de\\/thenewsbar\\/static\\/pw\\.js"
},
"Berlingske": {
"domain": "berlingske.dk",
"allow_cookies": 1,
"useragent": "bingbot",
"upd_version": "3.1.3.3"
},
"Business Standard": {
"domain": "business-standard.com",
"allow_cookies": 1,
@ -68,32 +62,12 @@
"Delish": {
"domain": "delish.com",
"allow_cookies": 1,
"block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)",
"new_site": 1
},
"Die Zeit": {
"domain": "zeit.de",
"allow_cookies": 1,
"add_ext_link": "aside#paywall|div.article-body",
"add_ext_link_type": "archive.is",
"upd_version": "3.2.2.4"
"block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)"
},
"Elle Decor": {
"domain": "elledecor.com",
"allow_cookies": 1,
"block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)",
"new_site": 1
},
"Euromoney": {
"domain": "euromoney.com",
"allow_cookies": 1,
"ld_google_webcache": "div.paywall|div.Paywall-content",
"upd_version": "3.2.5.9"
},
"Ftm.eu": {
"domain": "ftm.eu",
"allow_cookies": 1,
"block_regex": "\\.ftm\\.eu\\/js\\/routing\\?"
"block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)"
},
"Grupo Abril": {
"domain": "abril.com.br",
@ -101,18 +75,6 @@
"block_js_inline": "\\.abril\\.com\\.br\\/.+\\/(\\w+\\-+){3,}",
"upd_version": "3.2.4.3"
},
"Gruppo GEDI.it (italian.tech, lescienze.it & espresso.repubblica.it)": {
"domain": "###_it_gedi",
"group": [
"italian.tech",
"lescienze.it",
"espresso.repubblica.it"
],
"allow_cookies": 1,
"block_regex": "(scripts\\.repubblica\\.it\\/pw\\/pw\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|user-notification)-.+\\.js)",
"useragent": "googlebot",
"upd_version": "3.2.1.1"
},
"Haaretz English": {
"domain": "haaretz.com",
"allow_cookies": 1,
@ -122,8 +84,7 @@
"Harper's Bazaar": {
"domain": "harpersbazaar.com",
"allow_cookies": 1,
"block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)",
"new_site": 1
"block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)"
},
"Hearst Communications magazines": {
"domain": "###_usa_hearst_comm_mag",
@ -148,33 +109,12 @@
"block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)",
"upd_version": "3.2.3.2"
},
"Het Laatste Nieuws (link to archive.is)": {
"domain": "hln.be",
"allow_cookies": 1,
"add_ext_link": "div#remaining-paid-content|div.article__body",
"add_ext_link_type": "archive.is",
"block_regex": "temptation\\.hln\\.be\\/temptation\\.js",
"upd_version": "3.2.2.6"
},
"Hindu Tamil Thisai": {
"domain": "hindutamil.in",
"allow_cookies": 1,
"amp_redirect": "div.premium-class-bt",
"new_site": 1
},
"La Vanguardia": {
"domain": "lavanguardia.com",
"allow_cookies": 1,
"block_regex": "\\/ev\\.lavanguardia\\.com",
"upd_version": "3.1.5.2"
},
"Le Télégramme": {
"domain": "letelegramme.fr",
"allow_cookies": 1,
"block_regex": "\\.poool\\.fr\\/",
"cs_code": "[{\"cond\":\"div.tlg-paywalled\", \"rm_class\": \"tlg-paywalled\"}]",
"upd_version": "3.2.1.1"
},
"Nordwest Zeitung": {
"domain": "nwzonline.de",
"allow_cookies": 1,
@ -184,21 +124,7 @@
"Oprah Daily": {
"domain": "oprahdaily.com",
"allow_cookies": 1,
"block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)",
"new_site": 1
},
"Puck.news": {
"domain": "puck.news",
"allow_cookies": 1,
"ld_google_webcache": "div[class*=\"paywall\"]|div.entry-content",
"cs_code": "[{\"cond\":\"body.paywall-active\", \"rm_class\":\"paywall-active\"},{\"cond\":\"article[style]\", \"rm_attrib\":\"style\"}]",
"upd_version": "3.2.5.4"
},
"Quora (regwall)": {
"domain": "quora.com",
"allow_cookies": 1,
"useragent": "googlebot",
"upd_version": "3.1.9.6"
"block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)"
},
"Record.pt": {
"domain": "record.pt",
@ -251,17 +177,6 @@
"cs_code": "[{\"cond\":\"div.mod-paywall\", \"rm_elem\":1}]",
"new_site": 1
},
"TechTarget Group": {
"domain": "###_usa_techtarget",
"allow_cookies": 1,
"group": [
"computerweekly.com",
"lemagit.fr",
"techtarget.com"
],
"cs_code": "[{\"cond\":\"div.paywall\", \"rm_class\": \"paywall\", \"elems\":[{\"cond\":\"p#firstP, div#inlineRegistrationWrapper\", \"rm_elem\": 1}]}]",
"new_site": 1
},
"Telegraaf": {
"domain": "telegraaf.nl",
"allow_cookies": 1,