From abdbe961f9cd0aa2ee9b4f985e045be953d20d9a Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 31 Aug 2022 08:40:16 +0200 Subject: [PATCH] Fix Australian Community Media (overlay+) --- contentScript.js | 8 ++++---- manifest.json | 2 +- sites_updated.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contentScript.js b/contentScript.js index 06faa6cd..9f7ef418 100644 --- a/contentScript.js +++ b/contentScript.js @@ -292,10 +292,10 @@ else { subscriber_hider.classList.remove('subscriber-hider'); } let blocker = document.querySelector('div.blocker'); - let overlays = document.querySelectorAll('div.transition-all'); - let noscroll = document.querySelector('body[style]'); - if (noscroll) - noscroll.removeAttribute('style'); + let overlays = document.querySelectorAll('div.transition-all, div[id^="headlessui-dialog"]'); + let noscroll = document.querySelectorAll('html[style], body[style]'); + for (let elem of noscroll) + elem.removeAttribute('style'); let story_generic_iframe = document.querySelector('.story-generic__iframe'); let ads = document.querySelectorAll('.ad-placeholder, .sticky, [id*="-container"], #hindsight-ads-iframe'); removeDOMElement(story_generic_iframe, blocker, ...overlays, ...ads); diff --git a/manifest.json b/manifest.json index 17f8a2da..e38d831e 100644 --- a/manifest.json +++ b/manifest.json @@ -699,5 +699,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.8.2.2" + "version": "2.8.2.3" } diff --git a/sites_updated.json b/sites_updated.json index 52273f59..b3f89fe0 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -20,7 +20,7 @@ "allow_cookies": 1, "block_regex": "(cdn-au\\.piano\\.io\\/api\\/tinypass.+\\.js|cdn\\.cxense\\.com\\/)", "cs_code": [{ - "cond": "div.transition-all", + "cond": "div.transition-all, div[id^=\"headlessui-dialog\"]", "rm_elem": 1 } ]