From 26f6d29524453e5335026beccdcd92bb47f729f8 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 6 Mar 2024 22:02:54 +0100 Subject: [PATCH] Add Funke Mediengruppe --- README.md | 11 +++++++++++ changelog.txt | 1 + contentScript.js | 8 ++++++++ custom/manifest.json | 2 +- manifest.json | 12 +++++++++++- sites.js | 22 ++++++++++++++++++++-- sites_updated.json | 19 ++++++++++++++++--- 7 files changed, 68 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 44f1165..4b695a9 100644 --- a/README.md +++ b/README.md @@ -622,6 +622,17 @@ Grouped in options:\ Grouped in options:\ *[Deutscher Fachverlag Mediengruppe](https://www.dfv.de)* (opt-in to custom sites)\ +*Funke Mediengruppe* sites like\ +[Berliner Morgenpost](https://www.morgenpost.de) - +[Braunschweiger Zeitung](https://www.braunschweiger-zeitung.de) - +[Hamburger Abendblatt](https://www.abendblatt.de) - +[Neue Ruhr Zeitung](https://www.nrz.de) - +[Ostthüringer Zeitung](https://www.otz.de) - +[Thüringer Allgemeine](https://www.thueringer-allgemeine.de) - +[Thüringische Landeszeitung](https://www.tlz.de) - +[Westdeutsche Allgemeine Zeitung](https://www.waz.de) - +[Westfalenpost](https://www.wp.de) - +[Westfälische Rundschau](https://www.wr.de)\ *[Haas Mediengruppe](https://www.haas-mediengruppe.de/marken)* sites like (opt-in to custom sites for unlisted)\ [Mannheimer Morgen](https://www.mannheimer-morgen.de)\ *Landwirtschaftsverlag* sites like\ diff --git a/changelog.txt b/changelog.txt index f87d84e..bc8ec04 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 Funke Mediengruppe (fetch from archive.is) Add Industry Dive (opt-in to custom sites) Remove Puck.news (fix obsolete) Fix Boersen-zeitung.de (timing) diff --git a/contentScript.js b/contentScript.js index 9fa61ac..83b26a4 100644 --- a/contentScript.js +++ b/contentScript.js @@ -15,6 +15,7 @@ var be_roularta_domains = ['artsenkrant.com', 'beleggersbelangen.nl', 'femmesdau 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 ch_media_domains = ['aargauerzeitung.ch', 'luzernerzeitung.ch', 'tagblatt.ch']; +var de_funke_medien_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_lv_domains = ['profi.de', 'wochenblatt.com']; var de_madsack_domains = ['haz.de', 'kn-online.de', 'ln-online.de', 'lvz.de', 'maz-online.de', 'neuepresse.de', 'ostsee-zeitung.de', 'rnd.de']; var de_mhs_custom_domains = ['cannstatter-zeitung.de', 'esslinger-zeitung.de', 'frankenpost.de', 'insuedthueringen.de', 'krzbb.de', 'kurier.de', 'np-coburg.de']; @@ -1437,6 +1438,13 @@ else if (matchDomain('zeit.de')) { getArchive(url, 'aside#paywall', '', 'article'); } +else if (matchDomain(de_funke_medien_domains)) { + let url = window.location.href; + getArchive(url, 'div#paywall-container', '', 'article'); + let ads = document.querySelectorAll('aside.ad-slot-wrapper'); + hideDOMElement(...ads); +} + else if (matchDomain(de_lv_domains)) { let paywall = document.querySelector('div[id^="paymentprocess-"]'); if (paywall) { diff --git a/custom/manifest.json b/custom/manifest.json index 6fb4348..daaffb2 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.5.8.2" + "version": "3.5.8.3" } diff --git a/manifest.json b/manifest.json index 1a1b1ea..4c2fe8f 100644 --- a/manifest.json +++ b/manifest.json @@ -56,6 +56,7 @@ "*://*.60millions-mag.com/*", "*://*.aargauerzeitung.ch/*", "*://*.abc.es/*", + "*://*.abendblatt.de/*", "*://*.abqjournal.com/*", "*://*.abril.com.br/*", "*://*.ad.nl/*", @@ -121,6 +122,7 @@ "*://*.bostonglobe.com/*", "*://*.bostonherald.com/*", "*://*.bqprime.com/*", + "*://*.braunschweiger-zeitung.de/*", "*://*.brisbanetimes.com.au/*", "*://*.britannica.com/*", "*://*.buffalonews.com/*", @@ -482,6 +484,7 @@ "*://*.modernretail.co/*", "*://*.monacomatin.mc/*", "*://*.monocle.com/*", + "*://*.morgenpost.de/*", "*://*.motorradonline.de/*", "*://*.mundodeportivo.com/*", "*://*.mv-voice.com/*", @@ -515,6 +518,7 @@ "*://*.noz.de/*", "*://*.nrc.nl/*", "*://*.nrpyrenees.fr/*", + "*://*.nrz.de/*", "*://*.ntnews.com.au/*", "*://*.nw.de/*", "*://*.nwitimes.com/*", @@ -535,6 +539,7 @@ "*://*.oregonlive.com/*", "*://*.orlandosentinel.com/*", "*://*.ostsee-zeitung.de/*", + "*://*.otz.de/*", "*://*.outdoorlife.com/*", "*://*.outlookbusiness.com/*", "*://*.outlookindia.com/*", @@ -719,11 +724,13 @@ "*://*.theweek.com/*", "*://*.thewest.com.au/*", "*://*.thewrap.com/*", + "*://*.thueringer-allgemeine.de/*", "*://*.tijd.be/*", "*://*.timeshighereducation.com/*", "*://*.timesofindia.com/*", "*://*.timesunion.com/*", "*://*.tirebusiness.com/*", + "*://*.tlz.de/*", "*://*.topagrar.com/*", "*://*.torontosun.com/*", "*://*.towardsdatascience.com/*", @@ -765,6 +772,7 @@ "*://*.washingtonexaminer.com/*", "*://*.washingtonpost.com/*", "*://*.watoday.com.au/*", + "*://*.waz.de/*", "*://*.weeklytimesnow.com.au/*", "*://*.wellandtribune.ca/*", "*://*.welt.de/*", @@ -780,6 +788,8 @@ "*://*.womenshealthmag.com/*", "*://*.womensrunning.com/*", "*://*.wonderzine.com/*", + "*://*.wp.de/*", + "*://*.wr.de/*", "*://*.wsj.com/*", "*://*.wwd.com/*", "*://*.ynet.co.il/*", @@ -843,5 +853,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.5.8.2" + "version": "3.5.8.3" } diff --git a/sites.js b/sites.js index 2f33736..1de4184 100644 --- a/sites.js +++ b/sites.js @@ -807,6 +807,24 @@ var defaultSites = { block_js_inline: /\.freiepresse\.de\/.+-artikel/, cs_dompurify: 1 }, + "Funke Mediengruppe (fetch from archive.is)": { + domain: "###_de_funke_medien", + group: [ + "abendblatt.de", + "braunschweiger-zeitung.de", + "morgenpost.de", + "nrz.de", + "otz.de", + "thueringer-allgemeine.de", + "tlz.de", + "waz.de", + "wp.de", + "wr.de" + ], + allow_cookies: 1, + block_regex: /\.piano\.io\//, + cs_dompurify: 1 + }, "Gannett Group (local USA Today)": { domain: "###_usa_gannett", group: [ @@ -3043,7 +3061,7 @@ function init_custom_flex_domains() { init_custom_flex_domains(); // sites with no fix (background) -var de_funke_medien_nofix_domains = ['braunschweiger-zeitung.de', 'harzkurier.de', 'ikz-online.de', 'morgenpost.de', 'nrz.de', 'otz.de', 'thueringer-allgemeine.de', 'tlz.de', 'waz.de', 'wp.de', 'wr.de']; +var de_funke_medien_nofix_domains = ['harzkurier.de', 'ikz-online.de']; var de_rp_aachen_medien_nofix_domains = ['aachener-nachrichten.de', 'aachener-zeitung.de', 'ga.de', 'rp-online.de', 'saarbruecker-zeitung.de', 'volksfreund.de']; var de_westfalen_medien_nofix_domains = ['muensterschezeitung.de', 'westfalen-blatt.de', 'wn.de']; var fr_be_groupe_rossel_nofix_domains = ['aisnenouvelle.fr', 'courrier-picard.fr', 'lardennais.fr', 'lavoixdunord.fr', 'lesoir.be', 'lest-eclair.fr', 'liberation-champagne.fr', 'lunion.fr', 'nordlittoral.fr', 'paris-normandie.fr', 'sudinfo.be']; @@ -3051,4 +3069,4 @@ var fr_groupe_ebra_nofix_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain. var fr_indigo_nofix_domains = ['africaintelligence.com', 'africaintelligence.fr', 'glitz.paris', 'intelligenceonline.com', 'intelligenceonline.fr', 'lalettre.fr']; 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', 'abendblatt.de', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.com', 'bnn.de', 'borsen.dk', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'codesports.com.au', 'compactmag.com', 'courrierinternational.com', 'coursehero.com', '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', 'gva.be', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.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', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', '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', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', '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', 'suedkurier.de', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(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, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); +var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.com', 'bnn.de', 'borsen.dk', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'codesports.com.au', 'compactmag.com', 'courrierinternational.com', 'coursehero.com', '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', 'gva.be', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.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', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', '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', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', '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', 'suedkurier.de', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(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, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); diff --git a/sites_updated.json b/sites_updated.json index 73ada84..3e81eaa 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -35,11 +35,24 @@ "ld_json_url": "div[class*='_gate']|div.article-page__content-body", "upd_version": "3.5.6.3" }, - "Funke Mediengruppe (removed)": { + "Funke Mediengruppe": { "domain": "###_de_funke_medien", - "group": [], + "group": [ + "abendblatt.de", + "braunschweiger-zeitung.de", + "morgenpost.de", + "nrz.de", + "otz.de", + "thueringer-allgemeine.de", + "tlz.de", + "waz.de", + "wp.de", + "wr.de" + ], "allow_cookies": 1, - "upd_version": "3.5.6.8" + "block_regex": "\\.piano\\.io", + "ld_archive_is": "div#paywall-container|article", + "upd_version": "3.5.8.3" }, "Groupe Rossel (removed)": { "domain": "###_fr_be_groupe_rossel",