From 4213bde4289f17e24cb59406f7d4ef401b49a7fb Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 8 Dec 2023 16:38:49 +0100 Subject: [PATCH] Fix The Atlantic (menu & videos) --- changelog.txt | 1 + contentScript.js | 5 +---- custom/manifest.json | 2 +- manifest.json | 2 +- sites.js | 1 - sites_updated.json | 5 +++++ 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/changelog.txt b/changelog.txt index a853670d..a25e6ca7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,6 +9,7 @@ Fix Beobachter.ch (json) Fix Bloomberg (css) Fix Crikey.com.au (cookie) Fix Nikkei Asian Review (cookie) +Fix The Atlantic (menu & videos) Fix TheTimes.co.uk (fetch from archive.is) * v3.4.5.0 (2023-12-03) diff --git a/contentScript.js b/contentScript.js index 0160795c..f6276c8c 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4928,10 +4928,7 @@ else if (matchDomain('theathletic.com')) { } else if (matchDomain('theatlantic.com')) { - let lazy_images = document.querySelectorAll('img[class*="Image_lazy__"]'); - for (let elem of lazy_images) - removeClassesByPrefix(elem, 'Image_lazy__'); - let banners = document.querySelectorAll('.c-nudge__container, .c-non-metered-nudge, div[class^="ArticleInjector_"]'); + let banners = document.querySelectorAll('aside#paywall, div[class^="LostInventoryMessage_"]'); hideDOMElement(...banners); } diff --git a/custom/manifest.json b/custom/manifest.json index f766287e..bff38765 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.4.5.4" + "version": "3.4.5.5" } diff --git a/manifest.json b/manifest.json index 8b8b0c97..3d021af8 100644 --- a/manifest.json +++ b/manifest.json @@ -830,5 +830,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.4.5.4" + "version": "3.4.5.5" } diff --git a/sites.js b/sites.js index f30201e0..771207e6 100644 --- a/sites.js +++ b/sites.js @@ -2176,7 +2176,6 @@ var defaultSites = { }, "The Atlantic": { domain: "theatlantic.com", - block_regex: /cdn\.theatlantic\.com\/_next\/static\/chunks\/pages\/.+\/archive\//, remove_cookies_select_drop: ["articleViews"] }, "The Baffler": { diff --git a/sites_updated.json b/sites_updated.json index 45cef504..024da8e2 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -66,6 +66,11 @@ "allow_cookies": 1, "upd_version": "3.4.4.3" }, + "The Atlantic": { + "domain": "theatlantic.com", + "remove_cookies_select_drop": ["articleViews"], + "upd_version": "3.4.5.5" + }, "The Economist": { "domain": "economist.com", "allow_cookies": 1,