From 1bc8f7149d5196e0c5365d7791a513b042e7f752 Mon Sep 17 00:00:00 2001 From: Bims Date: Wed, 4 Sep 2024 23:22:22 +0200 Subject: [PATCH] removed unused permission and removed checks via webnavigation --- manifest.json | 3 +-- src/background.ts | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/manifest.json b/manifest.json index f08fe8c..b92943c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,11 +1,10 @@ { "manifest_version": 3, - "version": "1.0", + "version": "1.1", "name": "ghcss-extension", "description": "A simple extension that allows users to view custom css on GitHub profiles.", "author": "Bims-sh", "permissions": [ - "webNavigation", "tabs", "activeTab" ], diff --git a/src/background.ts b/src/background.ts index cd3620d..be08611 100644 --- a/src/background.ts +++ b/src/background.ts @@ -4,12 +4,6 @@ }); } -// Listen for history state changes (SPA navigation) -chrome.webNavigation.onHistoryStateUpdated.addListener((details: chrome.webNavigation.WebNavigationTransitionCallbackDetails) => { - console.log("History state updated"); - handleCssInjection(details.tabId); -}, { url: [{ urlMatches: 'github.com' }] }); - // Listen for tab updates (page load or refresh) chrome.tabs.onUpdated.addListener((tabId: number, changeInfo: chrome.tabs.TabChangeInfo) => { if (changeInfo.status === 'complete') {