diff options
author | sameerasw <[email protected]> | 2025-02-25 22:16:40 +0530 |
---|---|---|
committer | sameerasw <[email protected]> | 2025-02-25 22:16:40 +0530 |
commit | 6e3e02dacb73ccfc0e5af10cfb639d2175593548 (patch) | |
tree | cb18f8b426baa98a5e3a5c79105b831361e63e3e /inject-css.js | |
parent | cd3f9cfd7fd259e8c810ddbd96860059ab28f1db (diff) |
Website specific toggling
Diffstat (limited to 'inject-css.js')
-rw-r--r-- | inject-css.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inject-css.js b/inject-css.js index c889e18..50e7c7f 100644 --- a/inject-css.js +++ b/inject-css.js @@ -8,7 +8,11 @@ browser.storage.sync.get("transparentZenSettings").then((settings) => { currentUrl.includes(key) ); const cssFileName = mapping[matchedKey]; - if (cssFileName) { + if ( + cssFileName && + settings.transparentZenSettings.websiteSettings?.[matchedKey] !== + false + ) { browser.storage.sync.get(cssFileName).then((data) => { if (data[cssFileName]) { let style = document.createElement("style"); |