diff --git a/README.md b/README.md index b97c683..727df3d 100644 --- a/README.md +++ b/README.md @@ -677,6 +677,8 @@ Grouped in options:\ [Neue Osnabrücker Zeitung](https://www.noz.de) - [Schleswig-Holsteinischer Zeitungsverlag](https://www.shz.de) - [Schweriner Volkszeitung](https://www.svz.de)\ +*OVB Media* sites like (opt-in to custom sites for ovb24.de news portals)\ +[Oberbayerisches Volksblatt](https://www.ovb-online.de)\ *Verlagsgruppe Rhein Main* sites like (opt-in to custom sites for unlisted)\ [Allgemeine Zeitung (Mainz)](https://www.allgemeine-zeitung.de) - [Darmstädter Echo](https://www.echo-online.de) - diff --git a/changelog.txt b/changelog.txt index e8aeb20..6ac098b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 OVB Media (opt-in to custom sites for unlisted) Add Private Media AU * v3.6.3.0 (2024-04-07) diff --git a/contentScript.js b/contentScript.js index 377b111..e0eacce 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1381,7 +1381,7 @@ else if (matchDomain('tt.com')) { try { let json_articles = JSON.parse(json_script.text).TT_COM_WWW_GLOBAL_STATE.articles; let json_article_id = json_articles.ids[0]; - if (json_article_id && !window.location.pathname.includes(json_article_id)) + if (!json_article_id || (json_article_id && !window.location.pathname.includes(json_article_id))) refreshCurrentTab(); let parser = new DOMParser(); let pars = json_articles.entities[json_article_id].articleData.article.elements; @@ -1394,6 +1394,17 @@ else if (matchDomain('tt.com')) { if (par.type === 'subheadline1') elem.style = 'font-weight: bold;'; } + } else if (par.type = 'x-im/content-part') { + if (par.elements) { + elem = document.createElement('p'); + for (let item of par.elements) { + if (item.content) { + let sub_elem = document.createElement('p'); + sub_elem.innerText = parseHtmlEntities(item.content); + elem.appendChild(sub_elem); + } + } + } } else if (par.type.match(/^x-im\//)) { if (par.url) { if (par.url.startsWith('https://twitter.com/')) { @@ -1550,6 +1561,11 @@ else if (matchDomain(de_motor_presse_domains)) { hideDOMStyle(ads); } +else if (matchDomain('ovb-online.de') || matchDomain(['bgland24.de', 'chiemgau24.de', 'innsalzach24.de', 'mangfall24.de', 'rosenheim24.de', 'wasserburg24.de'])) { + let ads = 'div.id-TBeepSlot, div[data-id-advertdfpconf]'; + hideDOMStyle(ads); +} + else if (matchDomain('ruhrnachrichten.de') || document.querySelector('a.mgw-logo[href^="https://mgw.de"]')) { let pathname = window.location.pathname; let article_id; @@ -2103,7 +2119,7 @@ else if (matchDomain('lemonde.fr')) { let figure = document.querySelector('figure.article__media'); func_post = function () { if (figure) { - let figure_new = document.querySelector('article > figure'); + let figure_new = document.querySelector('article figure'); let article = document.querySelector(article_sel); if (!figure_new && article) article.firstChild.before(figure); @@ -3705,7 +3721,7 @@ else if (matchDomain(usa_adv_local_domains)) { if (window.location.search.startsWith('?outputType=amp')) { let ads = 'amp-embed'; - hideDOMStyel(ads); + hideDOMStyle(ads); } else { let paywall_sel = 'div.paywall'; let paywall = document.querySelector(paywall_sel); diff --git a/contentScript_once.js b/contentScript_once.js index cb9ce02..604dd3b 100644 --- a/contentScript_once.js +++ b/contentScript_once.js @@ -74,6 +74,8 @@ window.setTimeout(function () { group = '###_de_mgw'; else if (matchDomain(['cannstatter-zeitung.de', 'esslinger-zeitung.de', 'frankenpost.de', 'insuedthueringen.de', 'krzbb.de', 'kurier.de', 'np-coburg.de'])) group = '###_de_mhs'; + else if (matchDomain(['bgland24.de', 'chiemgau24.de', 'innsalzach24.de', 'mangfall24.de', 'rosenheim24.de', 'wasserburg24.de'])) + group = '###_de_ovb_media'; 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 (document.querySelector('head > link[href*="/assets.static-chmedia.ch/"]')) diff --git a/custom/manifest.json b/custom/manifest.json index 4841762..5b3e15b 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.6.3.1" + "version": "3.6.3.2" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index be52c4d..662e83a 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -620,12 +620,6 @@ "block_regex": "\\.opovo\\.com\\.br\\/.+\\/js\\/auth\\/auth_new_menu.min\\.js", "domain": "opovo.com.br" }, - "Ovb-online.de": { - "allow_cookies": 1, - "block_regex": "\\.ovb-online\\.de\\/sub\\/js\\/pc-offer-west\\.js", - "cs_code": "[{\"cond\":\"div.id-TBeepSlot\", \"rm_elem\":1}]", - "domain": "ovb-online.de" - }, "Overwaar.de": { "allow_cookies": 1, "domain": "overwaar.de", diff --git a/manifest.json b/manifest.json index da04b0d..5747dcc 100644 --- a/manifest.json +++ b/manifest.json @@ -561,6 +561,7 @@ "*://*.outlookbusiness.com/*", "*://*.outlookindia.com/*", "*://*.outsideonline.com/*", + "*://*.ovb-online.de/*", "*://*.oxygenmag.com/*", "*://*.paloaltoonline.com/*", "*://*.parismatch.com/*", @@ -875,5 +876,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.6.3.1" + "version": "3.6.3.2" } diff --git a/sites.js b/sites.js index ddf79ae..71660b2 100644 --- a/sites.js +++ b/sites.js @@ -1931,6 +1931,14 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.tinypass\.com\// }, + "OVB Media (opt-in to custom sites for ovb24.de news portals)": { + domain: "###_de_ovb_media", + group: [ + "ovb-online.de" + ], + allow_cookies: 1, + block_regex: "\\.{domain}\\/sub\\/js\\/pc-offer-west\\.js" + }, "Palo Alto Online": { domain: "paloaltoonline.com" }, @@ -3178,4 +3186,4 @@ var fr_indigo_nofix_domains = ['africaintelligence.com', 'africaintelligence.fr' var fr_jamg_nofix_domains = ['africabusinessplus.com', 'jeuneafrique.com', 'theafricareport.com']; var it_gedi_nofix_domains = ['gelocal.it', 'limesonline.com']; var nl_mediahuis_region_nofix_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl']; -var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'americanscientist.org', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.com', 'bnn.de', 'borsen.dk', 'businessdesk.co.nz', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'compactmag.com', 'coursehero.com', 'denikn.cz', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'ewmagazine.nl', 'falter.at', 'finance.si', 'franc-tireur.fr', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jungefreiheit.de', 'kleinezeitung.at', 'krone.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'maville.com', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'money.it', 'moneycontrol.com', 'moodys.com', 'morningstar.com', 'motorsport.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newcriterion.com', 'news24.com', 'nn.de', 'on3.com', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'puck.news', 'quillette.com', 'rbc.ru', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'streetinsider.com', 'substack.com', 'svd.se', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'the-ken.com', 'thebanker.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'usine-digitale.fr', 'vedomosti.ru', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(be_mediahuis_nofix_domains, de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_be_groupe_rossel_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, fr_jamg_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); +var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'americanscientist.org', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.com', 'bnn.de', 'borsen.dk', 'businessdesk.co.nz', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'compactmag.com', 'coursehero.com', 'denikn.cz', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'ewmagazine.nl', 'falter.at', 'finance.si', 'franc-tireur.fr', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jungefreiheit.de', 'kleinezeitung.at', 'krone.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', 'mailplus.co.uk', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'maville.com', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'money.it', 'moneycontrol.com', 'moodys.com', 'morningstar.com', 'motorsport.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newcriterion.com', 'news24.com', 'nn.de', 'on3.com', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'puck.news', 'quillette.com', 'rbc.ru', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'streetinsider.com', 'substack.com', 'svd.se', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'the-ken.com', 'thebanker.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'usine-digitale.fr', 'vedomosti.ru', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(be_mediahuis_nofix_domains, de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_be_groupe_rossel_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, fr_jamg_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); diff --git a/sites_updated.json b/sites_updated.json index c0df624..dfd7eb2 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -66,6 +66,12 @@ "block_regex": "\\.piano\\.io", "upd_version": "3.6.2.8" }, + "Ovb-online.de": { + "domain": "ovb-online.de", + "allow_cookies": 1, + "block_regex": "\\.ovb-online\\.de\\/sub\\/js\\/pc-offer-west\\.js", + "upd_version": "3.6.3.2" + }, "Reuters": { "domain": "reuters.com", "allow_cookies": 1,