From 1cd2fe770c30700d2c7ed95606b7ce0415935d71 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 23 Sep 2022 08:07:04 +0200 Subject: [PATCH] Fix Business Standard --- changelog.txt | 1 + contentScript.js | 5 +++++ manifest.json | 2 +- options/options_custom.html | 2 +- sites_updated.json | 10 ++++++++++ 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index f329c4d..be48fb0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix Business Standard Fix Hearst Communications (newspapers) Fix The Athletic diff --git a/contentScript.js b/contentScript.js index 5135ce1..aa2f90e 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2634,6 +2634,11 @@ else if (matchDomain('business-standard.com')) { removeDOMElement(paywall); window.location.href = amphtml.href; } + let story_content = document.querySelector('div.story-content'); + if (story_content) + story_content.classList.remove('story-content'); + let ads = document.querySelectorAll('div[class*="adv-"]'); + removeDOMElement(...ads); } else { amp_unhide_subscr_section('amp-ad, amp-embed, .block-cont-amp, #divnonpaidcontent, div > div.article_image, div[subscriptions-actions], .reader'); } diff --git a/manifest.json b/manifest.json index f295d55..1970b40 100644 --- a/manifest.json +++ b/manifest.json @@ -707,5 +707,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.8.5.2" + "version": "2.8.5.3" } diff --git a/options/options_custom.html b/options/options_custom.html index 3745102..46a7ab0 100644 --- a/options/options_custom.html +++ b/options/options_custom.html @@ -15,7 +15,7 @@ If you want to use custom sites (for non-listed sites) enable it in Custom sites enabled:
You can also just request permissions for the custom sites & post-release added sites (below).
- If permission is missing the icon badge will contain a 'C' (or '+C' if you can import the custom site from GitLab).
+ If permission is missing the icon badge will contain a 'C' (or '+C' if you can import the custom site from GitLab; when no fix X).
On Android: to enable custom sites you need the 'custom' add-on version (with access to all sites): Bypass Paywalls Clean (custom)

diff --git a/sites_updated.json b/sites_updated.json index 835b1df..110d266 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -4,6 +4,16 @@ "allow_cookies": 1, "block_regex": "\\.poool\\.fr\\/" }, + "Business Standard": { + "domain": "business-standard.com", + "allow_cookies": 1, + "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js", + "cs_code": [{ + "cond": "div.story-content", + "rm_class": "story-content" + } + ] + }, "Esprit": { "domain": "esprit.presse.fr", "allow_cookies": 1,