Search code examples
javascriptgoogle-chrome-extension

How to add icon to chrome extension?


I've attempted this guide from Google, this stack post, and this stack post. I followed what I read but somehow it's not updating the icon when I see it in my extensions. Someone mentioned a dashboard, but my extension a brief script I've saved locally, and update locally when testing. This is my manifest:

{
"manifest_version": 2,
"name": "Submit Server Glory",
"version": "1.1",
"content_scripts":[
    {
        "matches": ["<all_urls>"],
        "js": ["content.js"]
    }
],
"browser_action": {
    "default_title": "Submit Server Glory",
    "default_icon": "money128.jpg"
},
"icons": {
  "16": "money16.jpg",
  "48": "money48.jpg",
  "128": "money128.jpg"
},
"permissions": ["tabs"]
} 

Solution

  • It looks like PNGs work and JPEGs explicitly DON'T work, which is a strange constraint for such a popular image.