From 446df430f0803ac5c5c50dbeba5e310660d02d18 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 3 Apr 2023 17:52:09 +0200 Subject: [PATCH] Add Haas Mediengruppe (opt-in to custom sites) --- README.md | 1 + changelog.txt | 1 + contentScript.js | 4 ++-- contentScript_once.js | 2 ++ custom/manifest.json | 2 +- custom/sites_custom.json | 10 ---------- manifest.json | 2 +- sites.js | 8 +++++++- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index bce2d4dd..1afb12db 100644 --- a/README.md +++ b/README.md @@ -571,6 +571,7 @@ Grouped in options:\ [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 (opt-in to custom sites)\ *Landwirtschaftsverlag* sites like\ [Profi.de](https://www.profi.de) - [Top Agrar.at](https://www.topagrar.at) - diff --git a/changelog.txt b/changelog.txt index fcc57079..dd40b828 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Add Haas Mediengruppe (opt-in to custom sites) * v3.1.2.0 (2023-04-02) Add Epicurious (Conde Nast) diff --git a/contentScript.js b/contentScript.js index 70563fa7..a991e2c2 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1501,7 +1501,7 @@ else if (matchDomain('legrandcontinent.eu')) { let paywall = document.querySelector('body.paywall, body.pw, body.softwall'); if (paywall) paywall.classList.remove('paywall', 'pw', 'softwall'); - let banners = document.querySelectorAll('div#fix-pw, div.disposableBanner') + let banners = document.querySelectorAll('div#fix-pw, div.disposableBanner'); removeDOMElement(...banners); } @@ -1724,7 +1724,7 @@ if (matchDomain('corriere.it')) { amp_unhide_subscr_section('amp-ad, amp-embed'); } else { let url = window.location.href; - if (url.includes('_preview.shtml')) { + if (url.includes('_preview.shtml') && !window.location.pathname.startsWith('/podcast/')) { window.setTimeout(function () { window.location.href = url.replace('_preview.shtml', '.shtml').split('?')[0]; }, 500); diff --git a/contentScript_once.js b/contentScript_once.js index 02b7b5db..ff7ae1dc 100644 --- a/contentScript_once.js +++ b/contentScript_once.js @@ -52,6 +52,8 @@ window.setTimeout(function () { } 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/"]')) 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/"]')) diff --git a/custom/manifest.json b/custom/manifest.json index 2710f21e..06208d3d 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.1.2.0" + "version": "3.1.2.1" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index b38c0b81..cce6cd15 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -132,11 +132,6 @@ "domain": "finanz-szene.de", "useragent": "googlebot" }, - "Fnweb.de": { - "allow_cookies": 1, - "domain": "fnweb.de", - "useragent": "googlebot" - }, "Freitag.de": { "allow_cookies": 1, "domain": "freitag.de", @@ -273,11 +268,6 @@ "domain": "manilatimes.net", "ld_json": "div.website-packages|div.article-body-content" }, - "Mannheimer-morgen.de": { - "allow_cookies": 1, - "domain": "mannheimer-morgen.de", - "useragent": "googlebot" - }, "Marketscreener.com (only free articles)": { "domain": "marketscreener.com" }, diff --git a/manifest.json b/manifest.json index 5ade93f5..4162e665 100644 --- a/manifest.json +++ b/manifest.json @@ -748,5 +748,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.1.2.0" + "version": "3.1.2.1" } diff --git a/sites.js b/sites.js index a67a744d..c69757c2 100644 --- a/sites.js +++ b/sites.js @@ -860,6 +860,12 @@ var defaultSites = { allow_cookies: 1, useragent: "facebookbot" }, + "Haas Mediengruppe (opt-in to custom sites)": { + domain: "###_de_haas_medien", + group: [], + allow_cookies: 1, + useragent: "googlebot" + }, "Handelszeitung.ch": { allow_cookies: 1, domain: "handelszeitung.ch", @@ -2490,4 +2496,4 @@ var au_news_corp_nofix_domains = ['cairnspost.com.au', 'geelongadvertiser.com.au var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be']; var de_rp_medien_nofix_domains = ['ga.de', 'rp-online.de', 'saarbruecker-zeitung.de', 'volksfreund.de']; 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', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'business-standard.com', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lemonde.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'rheinpfalz.de', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'thedispatch.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, de_rp_medien_nofix_domains, it_gedi_nofix_domains); +var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'business-standard.com', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lemonde.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'rheinpfalz.de', 'rnz.de', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'thedispatch.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, de_rp_medien_nofix_domains, it_gedi_nofix_domains);