Avoid creation of browser action in Chrome extension

799 Views Asked by At

I am creating a chrome extension. When the extension is added to chrome, then icon next to address bar is added also (browser action). My extension does not need any browser action. So, how can I avoid creation of this icon?

Edit: My manifest file:

{
"background": {
  "persistent": true,
  "scripts": [ "background.js" ]
},

"description": "This extension ...",
"manifest_version": 2,
"name": "Something",
"permissions": [ "webRequest", "webRequestBlocking", "http://*/*", 
"https://*/*" ],
"version": "1",

"icons": {
"128": "msdos.png"
}
1

There are 1 best solutions below

2
On

If your browser extension does not need browser_action, you can simply remove it from your manifest.json see: from https://developer.chrome.com/extensions/browserAction.
It will remove the icon next to the bar address.

More details about manifest.json: https://developer.chrome.com/extensions/manifest

If it does not work, do you mind to post your manifest.json

EDIT: As wOxxOm mentionned, since January 2016, Chrome shows all the icons of the web extension. So there is no way to hide it (except on the older version of Chrome).