Testing on/off without popout

This commit is contained in:
tobimori 2020-03-15 15:53:44 +01:00
parent 5be8e76e78
commit de4868b1e5
3 changed files with 17 additions and 4 deletions

View File

@ -38,4 +38,6 @@ browser.webRequest.onBeforeRequest.addListener(
types: ["script"] types: ["script"]
}, },
["blocking"] ["blocking"]
); );
browser.browserAction.onClicked.addListener(console.log("clicked"));

View File

@ -20,8 +20,19 @@
"background": { "background": {
"scripts": ["lib.js", "background.js"] "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": [ "permissions": [
"<all_urls>", "<all_urls>",
"webRequest", "webRequest",

View File

@ -10,7 +10,7 @@
<div> <div>
<label class="switch"> <label class="switch">
<input type="checkbox" checked> <input type="checkbox" checked>
<span class="slider round"></span> <span class="slider"></span>
</label> </label>
</div> </div>
</body> </body>