Google Extension的内容脚本错误

时间:2017-01-09 15:26:58

标签: javascript json

出于某种原因,我的文本编辑器和谷歌都在我的第六行中突出显示冒号。我搜索了相关的问题,但我没有找到类似的东西。救命?

{
    "manifest_version": 2,
    "name": "kittenbook",
    "description": "Replace photos on Facebook with kittens",
    "version": "0.0.1"
    "content_scripts": [
        {
            "matches": ["*//www.facebook.com/*"],
            "js": ["kittenbook.js"]
        }
    ]
}

1 个答案:

答案 0 :(得分:0)

缺少逗号:

{
  "manifest_version": 2,
  "name": "kittenbook",
  "description": "Replace photos on Facebook with kittens", 
  "version": "0.0.1",//This was missing
  "content_scripts": [
    {
      "matches": [
        "//www.facebook.com/"
      ],
      "js": [
        "kittenbook.js"
      ]
    }
  ]
}