From b82486b930c3e735b9a175f53f498da30451b5cc Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 27 Dec 2023 17:05:25 +0100 Subject: [PATCH] Add Business Insider Nederland & Polska --- README.md | 2 ++ changelog.txt | 2 ++ contentScript.js | 10 ++++++++++ custom/manifest.json | 2 +- manifest.json | 4 +++- sites.js | 15 ++++++++++++--- sites_updated.json | 19 +++++++++++++++++++ 7 files changed, 49 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 51a0c78d..6638f6f9 100644 --- a/README.md +++ b/README.md @@ -719,6 +719,7 @@ Grouped in options:\ ##### Netherlands/Flanders [Business AM](https://businessam.be) - +[Business Insider Nederland](https://www.businessinsider.nl) - [De Tijd](https://www.tijd.be) - [Doorbraak](https://doorbraak.be) - [Financieele Dagblad](https://fd.nl) - @@ -771,6 +772,7 @@ Grouped in options:\ [Upstream](https://www.upstreamonline.com) ##### Poland +[Business Insider Polska](https://businessinsider.com.pl) - [Rzeczpospolita](https://www.rp.pl) ##### Portugal diff --git a/changelog.txt b/changelog.txt index ec0f66e4..48acce54 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,8 @@ Changelog Bypass Paywalls Clean - Firefox Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Add Business Insider Nederland +Add Business Insider Polska Add Huffingtonpost.it Remove Haaretz Group (fix obsolete) Fix elDiario.es (amp-redirect) diff --git a/contentScript.js b/contentScript.js index 62ec1eed..150fdacd 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2422,6 +2422,11 @@ else if (matchDomain('businessam.be')) { } } +else if (matchDomain('businessinsider.nl')) { + if (dompurify_loaded) + getJsonUrl('div.piano-article__paywall', '', 'div.piano-article__content'); +} + else if (matchDomain('doorbraak.be')) { let paywall_sel = 'div.paywall'; let paywall = document.querySelector(paywall_sel); @@ -3683,6 +3688,11 @@ else if (matchDomain('business-standard.com')) { ampToHtml(); } +else if (matchDomain('businessinsider.com.pl')) { + let paywall = document.querySelector('div#content-premium-offer'); + removeDOMElement(paywall); +} + else if (matchDomain('businessinsider.com')) { let ads = document.querySelectorAll('div.l-ad, div.in-post-sticky, aside.has-video-ad'); hideDOMElement(...ads); diff --git a/custom/manifest.json b/custom/manifest.json index a76f2aeb..c6f7ad57 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.4.8.3" + "version": "3.4.8.4" } diff --git a/manifest.json b/manifest.json index e715bd75..4e35b676 100644 --- a/manifest.json +++ b/manifest.json @@ -126,7 +126,9 @@ "*://*.buffalonews.com/*", "*://*.business-standard.com/*", "*://*.businessam.be/*", + "*://*.businessinsider.com.pl/*", "*://*.businessinsider.com/*", + "*://*.businessinsider.nl/*", "*://*.businessoffashion.com/*", "*://*.businesspost.ie/*", "*://*.cairnspost.com.au/*", @@ -822,5 +824,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.4.8.3" + "version": "3.4.8.4" } diff --git a/sites.js b/sites.js index bf764a5b..d88ed40c 100644 --- a/sites.js +++ b/sites.js @@ -308,7 +308,16 @@ var defaultSites = { "Business Insider": { domain: "businessinsider.com", allow_cookies: 1, - block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/ + block_regex: /\.tinypass\.com\// + }, + "Business Insider Nederland": { + domain: "businessinsider.nl", + allow_cookies: 1, + block_regex: /\.piano\.io\// + }, + "Business Insider Polska": { + domain: "businessinsider.com.pl", + remove_cookies_select_drop: ["xbc"] }, "Business Post.ie": { domain: "businesspost.ie", @@ -2764,7 +2773,7 @@ var defaultSites = { domain: "piano.io", allow_cookies: 1, block_regex_general: /\.piano\.io\/xbuilder\/experience\/execute/, - excluded_domains: ["piano.io", "asia.nikkei.com", "hbr.org", "japantimes.co.jp", "kurier.at", "nacion.com", "onet.pl"] + excluded_domains: ["piano.io", "asia.nikkei.com", "businessinsider.com.pl", "hbr.org", "japantimes.co.jp", "kurier.at", "nacion.com", "onet.pl"] }, "Pico.tools": { domain: "pico.tools", @@ -2921,4 +2930,4 @@ var fr_indigo_nofix_domains = ['africaintelligence.com', 'africaintelligence.fr' var il_haaretz_group_nofix_domains = ['haaretz.co.il', 'haaretz.com', 'themarker.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 = ['aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asahi.com', 'asiatimes.com', 'autosport.com', 'aviationweek.com', 'badische-zeitung.de', 'bloomberglaw.com', 'bloombergtax.com', 'bnn.de', 'borsen.dk', 'businessinsider.de', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.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', 'expresso.pt', 'falter.at', 'finance.si', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'handelsblatt.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', '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', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', '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', 'schwarzwaelder-bote.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(be_mediahuis_nofix_domains, de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, il_haaretz_group_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); +var nofix_sites = ['aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asahi.com', 'asiatimes.com', 'autosport.com', 'aviationweek.com', 'badische-zeitung.de', 'bloomberglaw.com', 'bloombergtax.com', 'bnn.de', 'borsen.dk', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.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', 'expresso.pt', 'falter.at', 'finance.si', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'handelsblatt.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', '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', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', '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', 'schwarzwaelder-bote.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(be_mediahuis_nofix_domains, de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, il_haaretz_group_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); diff --git a/sites_updated.json b/sites_updated.json index 6a832ab4..b487b8dd 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -25,6 +25,18 @@ "excluded_domains": ["nationalreview.com"], "upd_version": "3.4.7.3" }, + "Business Insider Nederland": { + "domain": "businessinsider.nl", + "allow_cookies": 1, + "block_regex": "\\.piano\\.io\\/", + "ld_json_url": "div.piano-article__paywall|div.piano-article__content", + "upd_version": "3.4.8.4" + }, + "Business Insider Polska": { + "domain": "businessinsider.com.pl", + "remove_cookies_select_drop": ["xbc"], + "upd_version": "3.4.8.4" + }, "Crikey.com.au": { "domain": "crikey.com.au", "block_regex": "\\.crickey\\.com\\.au\\/zephr\\/feature", @@ -116,6 +128,13 @@ "block_regex": "\\.cloudfront\\.net\\/embed\\/widget\\/subx.+\\.js", "upd_version": "3.4.7.6" }, + "Piano.io (+ TinyPass)": { + "domain": "piano.io", + "allow_cookies": 1, + "block_regex_general": "\\.piano\\.io\\/xbuilder\\/experience\\/execute", + "excluded_domains": ["piano.io", "asia.nikkei.com", "businessinsider.com.pl", "hbr.org", "japantimes.co.jp", "kurier.at", "nacion.com", "onet.pl"], + "upd_version": "3.4.8.4" + }, "Rzeczpospolita": { "domain": "rp.pl", "ld_google_webcache": "div.paywallComponentWrapper|div.main--content--body",