From dd7625e4b5fd62c48fef729ecaaa8f4b8d8b9b24 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 10 Nov 2023 17:21:48 +0100 Subject: [PATCH] Fix The Globe and Mail (css) --- changelog.txt | 1 + contentScript.js | 3 +++ sites_updated.json | 7 +++++++ 3 files changed, 11 insertions(+) diff --git a/changelog.txt b/changelog.txt index 9318b61..583d3f8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -12,6 +12,7 @@ Fix Groupe Rossel (link to archive.is) Fix Italian.tech (GEDI.it) Fix Telegraaf.nl (images) Fix The Diplomat +Fix The Globe and Mail (css) Update block general paywall script (fix TownNews) Update custom sites (delete default sites) Update Leaky Paywall (identify more sites) diff --git a/contentScript.js b/contentScript.js index 4de2d88..9dba2e2 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4893,6 +4893,9 @@ else if (matchDomain('theglobeandmail.com')) { window.location.href = window.location.pathname + '?rel=premium'; } } else { + let html_nojs = document.querySelector('html.no-js'); + if (html_nojs) + html_nojs.classList.remove('no-js'); let header_hidden = document.querySelectorAll('div.o-primary-header, div.c-article-meta'); for (let elem of header_hidden) elem.setAttribute('style', 'display: block !important;'); diff --git a/sites_updated.json b/sites_updated.json index 2498644..04f5348 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -175,6 +175,13 @@ "block_regex": "subs\\.theepochtimes\\.com\\/rules\\/get", "upd_version": "3.4.0.8" }, + "The Globe and Mail": { + "domain": "theglobeandmail.com", + "block_js_inline": "\\.theglobeandmail\\.com\\/.+\\/article-.+\\?rel=premium", + "block_regex": "smartwall\\.theglobeandmail\\.com\\/", + "cs_code": "[{\"cond\":\"html.no-js\", \"rm_class\":\"no-js\"}]", + "upd_version": "3.4.1.7" + }, "The Hindu": { "domain": "thehindu.com", "allow_cookies": 1,