From 4e672ecef4b76dae0f2d497a56bb3e953201bfcb Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 12 Apr 2024 08:18:25 +0200 Subject: [PATCH] Fix Business Insider (js) --- changelog.txt | 1 + contentScript.js | 2 +- custom/manifest.json | 2 +- manifest.json | 2 +- sites.js | 2 +- sites_updated.json | 6 ++++++ 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index d82f720..f21e035 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal Post-release Add OVB Media (opt-in to custom sites for unlisted) Add Private Media AU +Fix Business Insider (js) Fix BizJournals (css) Fix The Economist (regwall) Fix WaPo (js) diff --git a/contentScript.js b/contentScript.js index e308732..114fd05 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3998,7 +3998,7 @@ else if (matchDomain('business-standard.com')) { } else if (matchDomain('businessinsider.com')) { - let ads = 'div.l-ad, div.in-post-sticky, aside.has-video-ad'; + let ads = 'div.l-ad, div.in-post-sticky, aside.has-video-ad, div.ad-callout-wrapper'; hideDOMStyle(ads); } diff --git a/custom/manifest.json b/custom/manifest.json index 1114bb4..f4c3eb5 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.6.3.4" + "version": "3.6.3.5" } diff --git a/manifest.json b/manifest.json index bfa8c63..3b42101 100644 --- a/manifest.json +++ b/manifest.json @@ -876,5 +876,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.6.3.4" + "version": "3.6.3.5" } diff --git a/sites.js b/sites.js index f91161f..d379a18 100644 --- a/sites.js +++ b/sites.js @@ -305,7 +305,7 @@ var defaultSites = { "Business Insider": { domain: "businessinsider.com", allow_cookies: 1, - block_regex: /(\.tinypass\.com\/|\.sophi\.io\/)/ + block_regex: /(\.tinypass\.com\/|\.sophi\.io\/|\.businessinsider\.com\/chunks\/scripts\/components~paywall-client\..+\.js)/ }, "Business Insider Nederland": { domain: "businessinsider.nl", diff --git a/sites_updated.json b/sites_updated.json index 775ba76..49ee77e 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -5,6 +5,12 @@ "block_regex": "\\/steadyhq\\.com", "upd_version": "3.6.1.5" }, + "Business Insider": { + "domain": "businessinsider.com", + "allow_cookies": 1, + "block_regex": "(\\.tinypass\\.com\\/|\\.sophi\\.io\\/|\\.businessinsider\\.com\\/chunks\\/scripts\\/components~paywall-client\\..+\\.js)", + "upd_version": "3.6.3.5" + }, "Capital.fr": { "domain": "capital.fr", "allow_cookies": 1,