From 919a6a9d946d388c33159a75a937ae8288cba7ab Mon Sep 17 00:00:00 2001 From: Anthony Xu Date: Mon, 14 Sep 2020 14:55:03 +1000 Subject: [PATCH] removed all match permissions --- src/background.js | 4 +++- src/manifest.json | 12 +----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/background.js b/src/background.js index 8fc59d6..367732f 100644 --- a/src/background.js +++ b/src/background.js @@ -21,7 +21,9 @@ chrome.runtime.onStartup.addListener(function() { }); chrome.contextMenus.onClicked.addListener(function(item, tab) { - chrome.tabs.executeScript({ + chrome.tabs.insertCSS({ + file: 'static/css/loader.css' + }), chrome.tabs.executeScript({ code: 'var currentTab = ' + JSON.stringify(tab) }, function() { chrome.tabs.executeScript({ diff --git a/src/manifest.json b/src/manifest.json index 5531d61..a6a66f3 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -28,15 +28,5 @@ "contextMenus", "clipboardWrite", "activeTab" - ], - "content_scripts": [{ - "matches": [ - "http://*/*", - "https://*/*" - ], - "css": [ - "static/css/loader.css", - "static/css/loader.css.map" - ] - }] + ] }