From de4868b1e56671809a76d3de4f9575ee440b1144 Mon Sep 17 00:00:00 2001 From: tobimori Date: Sun, 15 Mar 2020 15:53:44 +0100 Subject: [PATCH] Testing on/off without popout --- background.js | 4 +++- manifest.json | 15 +++++++++++++-- popout/popout.html | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/background.js b/background.js index de7096c..9eeaef7 100644 --- a/background.js +++ b/background.js @@ -38,4 +38,6 @@ browser.webRequest.onBeforeRequest.addListener( types: ["script"] }, ["blocking"] -); \ No newline at end of file +); + +browser.browserAction.onClicked.addListener(console.log("clicked")); \ No newline at end of file diff --git a/manifest.json b/manifest.json index 2040254..0bf57bd 100644 --- a/manifest.json +++ b/manifest.json @@ -20,8 +20,19 @@ "background": { "scripts": ["lib.js", "background.js"] - }, - + }, + + "browser_action": { + "default_icon": { + "32": "icons/icon-32.png", + "48": "icons/icon-48.png", + "64": "icons/icon-64.png", + "96": "icons/icon-96.png", + "128": "icons/icon-128.png" + }, + "default_title": "Unpaywall" + }, + "permissions": [ "", "webRequest", diff --git a/popout/popout.html b/popout/popout.html index d8f4f3e..eb032cb 100644 --- a/popout/popout.html +++ b/popout/popout.html @@ -10,7 +10,7 @@