Chrome Extensions - How can i perform an action, when chrome.browserAction.onClicked has fired?
问题 I want to make a browserAction extension, with an icon and a listener on it. I have a manifest file, and a background script, the script is the following: chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.executeScript(null,{code:'some code here'}); }); The code works on the page, i tried it on a different way (popup and a button what fires the action). But if i try it with a browserAction onclick method, nothing happens:( The manifest: { "name": "somename", "version": "1