有人可以帮我这个扩展吗?

时间:2015-03-26 20:16:24

标签: google-chrome google-chrome-extension

我在这里做错了什么?

{
"browser_action": {
    "default_icon": "icon16.png",
    "default_popup": "popup.html",
    "background": {
        "page": "popup.html"
    },
    "content_scripts": [
        {
            "js": [
                "script.js"
            ],
            "matches": [
                "http://*/*",
                "https://*/*"
            ]
        }
    ],
    "content_security_policy": "script-src 'self' 'unsafe-eval' https://ssl.google-analytics.com; object-src 'self'",
    "description": "XDA-Developers",
    "icons": {
        "128": "icon128.png",
        "16": "icon16.png",
        "48": "icon48.png"
    },
    "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrsWIbSkVm2ikw4QDz79/25CcH+wA+zPdYwiFF/T19YqROUJwZEmmZAis3uLOCaX5GqirmcUoRRzp31OEWxW4AQVpkdDPfXbmi3ZAcdAz/qR+JarWq39nA7CBGcvn6G/g8Z3N9jOKU93fIp0L3eqecrCsk/OJb2sLVgr6f/XjBywIDAQAB",
    "manifest_version": 2,
    "name": "Xda-Developers",
    "permissions": [
        "webNavigation"
    ],
    "update_url": "https://clients2.google.com/service/update2/crx",
    "version": "0.3.1",
    "web_accessible_resources": [
        "script.js",
}

我很困惑。我使用过JSONlint,但它并没有帮助我说#14; PARSE ERROR"

1 个答案:

答案 0 :(得分:2)

你从未在最后几行关闭数组的[

    "web_accessible_resources": [
        "script.js",
}