summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsameerasw <[email protected]>2025-02-27 23:09:40 +0530
committersameerasw <[email protected]>2025-02-27 23:09:40 +0530
commitb84cdcf7c6046b8d0c7d9fd292866e2ebc6a13ab (patch)
tree2db4576c406bf86dbe49487e79510319ec61f4b4
parentd020d729d338ee71b59130ff1a820363dc0053e7 (diff)
updated pop-up footer
-rw-r--r--background.js14
-rw-r--r--inject-css.js2
-rw-r--r--manifest.json2
-rw-r--r--popup/popup.html4
-rw-r--r--popup/popup.js2
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 @@
<footer class="app-footer">
<a href="https://sameerasw.github.io/my-internet/" class="footer-link" target="_blank">
- <i class="fas fa-book"></i> Styles Repository
+ <i class="fas fa-book"></i> Styles
</a>
<div class="footer-divider"></div>
<a href="https://github.com/sameerasw/my-internet/issues/new/choose" class="footer-link" target="_blank">
- <i class="fa-brands fa-github"></i> Issues? Theme Requests?
+ <i class="fa-brands fa-github"></i> Bug?
</a>
</footer>
</div>
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";