After reading and understanding how an extension works I tried to create a simple program. Unfortunately, I hit an obstacle because I don't know how to create my extension without image.

I think it is possible because I've seen many extensions without one. So if anyone knows how please help me out. I believe my problem lies in the manifest.json file:

{
  "name": "name",
  "version": "0.1",
  "manifest_version": 2,
  "description": "description",
  "browser_action": {
    "default_icon": "icon.png"
  },
  "background": {
    "scripts": ["popup.js"]
  },
  "permissions": ["tabs", "<all_urls>"]
}
有帮助吗?

解决方案 2

The accepted answer no longer works (because of new behavior in Chrome). There is no way to not show your icon that's a user's choice now.

See this answer for more details

其他提示

Just remove:

"browser_action": {
  "default_icon": "icon.png"
},

from your manifest.json. You need to pick one OR none (none is your case) of:

"browser_action": {...},
"page_action": {...}, 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top