From 7b2c97a9d025f0f88698c3fec21f90a66f66afca Mon Sep 17 00:00:00 2001 From: wanhose Date: Wed, 23 Jun 2021 17:29:47 +0200 Subject: [PATCH 1/3] feat(data): add new elements --- data/elements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 36f9ebb8f12c00bab136e674047c9464de39b741 Mon Sep 17 00:00:00 2001 From: wanhose Date: Wed, 23 Jun 2021 17:30:28 +0200 Subject: [PATCH 2/3] feat: use browser theme by default for loading background --- scripts/content.js | 3 ++- styles/content.css | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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; + } } From 190099cf54c08588a180d37176d17610f226eeb6 Mon Sep 17 00:00:00 2001 From: wanhose Date: Wed, 23 Jun 2021 17:31:01 +0200 Subject: [PATCH 3/3] feat(manifest): upgrade version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {