简体   繁体   中英

chrome Extension Development, JS issue.

Okay so I'm a JS noob, and I can admit that. I've been reading up and learning how to make extensions for chrome. So I want to have a content script and browser action, but I can't get it to run for the life of me. It's probably something dumb I'm doing something wrong, but any help is appreciated.

    {
"update_url": "https://clients2.google.com/service/update2/crx",

"manifest_version": 2,
"name": "*********",
"version": "0.3",
"description": "*****************************",
"icons": { "16": "images/icon16.png",
            "48": "images/icon48.png",
            "128": "images/icon128.png" },
"browser_action": {
"default_icon": {
    "19": "icons/19x19.png",
    "38": "icons/38x38.png"
},
"default_title": "That's the tool tip",
"default_popup": "popup.html"
}
"content_scripts": 
[
    {
        "matches": ["*://*/*"], 
        "js": ["content.js"],
        "run_at": "document_end"  
    }
]
}

I can't write a comment,

Perhaps a comma is missing here

"default_popup": "popup.html"
 }, <-- HERE!!
"content_scripts": 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM