diff --git a/data/elements.txt b/data/elements.txt index 8ff0fb8..b74a88a 100644 --- a/data/elements.txt +++ b/data/elements.txt @@ -12579,4 +12579,5 @@ aside[class*="CookieModalstyles"] body#Index.Matriculas > div#overlay #cookie-popup-with-overlay .wt-cli-cookie-bar-container -html[id="facebook"] > body > div.__fb-light-mode \ No newline at end of file +html[id="facebook"] > body > div.__fb-light-mode +.cookie-notice-message \ No newline at end of file diff --git a/manifest.json b/manifest.json index b16c048..648851f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Do Not Consent", - "version": "4.0.1", + "version": "4.0.2", "default_locale": "en", "description": "__MSG_appDesc__", "icons": { diff --git a/scripts/content.js b/scripts/content.js index ee35da1..1e93d6b 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -51,7 +51,8 @@ const fix = () => { if (body) body.style.setProperty("overflow-y", "unset", "important"); if (facebook) facebook.style.setProperty("position", "unset", "important"); if (html) html.style.setProperty("overflow-y", "unset", "important"); - if (!loading) html.style.setProperty("opacity", "1", "important"); + if (body && !loading) body.style.setProperty("opacity", "1"); + if (html && !loading) html.style.setProperty("background-color", "initial"); }; /** diff --git a/styles/content.css b/styles/content.css index 41fc891..036a83d 100644 --- a/styles/content.css +++ b/styles/content.css @@ -1,3 +1,9 @@ -html { - opacity: 0 !important; +body { + opacity: 0; +} + +@media (prefers-color-scheme: dark) { + html { + background-color: #424242; + } }