From b84cdcf7c6046b8d0c7d9fd292866e2ebc6a13ab Mon Sep 17 00:00:00 2001 From: sameerasw Date: Thu, 27 Feb 2025 23:09:40 +0530 Subject: updated pop-up footer --- background.js | 14 +++++++------- inject-css.js | 2 +- manifest.json | 2 +- popup/popup.html | 4 ++-- popup/popup.js | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/background.js b/background.js index 3a8a958..067bad7 100644 --- a/background.js +++ b/background.js @@ -1,4 +1,4 @@ -let logging = true; +let logging = false; async function applyCSSToTab(tab) { if (logging) console.log("applyCSSToTab called with", tab); @@ -103,9 +103,9 @@ browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { } }); -// browser.tabs.onActivated.addListener(async (activeInfo) => { -// if (logging) console.log("onActivated called with", activeInfo); -// // Apply CSS when a tab is activated -// const tab = await browser.tabs.get(activeInfo.tabId); -// applyCSSToTab(tab); -// }); +browser.tabs.onActivated.addListener(async (activeInfo) => { + if (logging) console.log("onActivated called with", activeInfo); + // Apply CSS when a tab is activated + const tab = await browser.tabs.get(activeInfo.tabId); + applyCSSToTab(tab); +}); diff --git a/inject-css.js b/inject-css.js index 7d009cc..fc1fc0f 100644 --- a/inject-css.js +++ b/inject-css.js @@ -1,4 +1,4 @@ -let logging = true; +let logging = false; if (logging) console.log("inject-css.js script loaded"); diff --git a/manifest.json b/manifest.json index 1c89cd4..235dc9e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Zen Internet", - "version": "1.2.2", + "version": "1.3.0", "description": "Inject custom css from my repository in real time", "browser_specific_settings": { "gecko": { diff --git a/popup/popup.html b/popup/popup.html index 4c20a90..1dda5cd 100644 --- a/popup/popup.html +++ b/popup/popup.html @@ -64,11 +64,11 @@ diff --git a/popup/popup.js b/popup/popup.js index 5f893ea..79edaa9 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -1,4 +1,4 @@ -let logging = true; +let logging = false; new (class ExtensionPopup { BROWSER_STORAGE_KEY = "transparentZenSettings"; -- cgit v1.2.3