【发布时间】:2016-02-18 02:30:51
【问题描述】:
所以,我一直在开发一个小的 Google Chrome 扩展程序,用其他词替换一些词,但是当我尝试加载扩展程序时,Google 告诉我有一个“Manifest is not valid JSON. Line: 12 ,列:2,根元素后的意外数据。"错误,我无法修复它。谢谢!
//credit goes to /u/adamrsb48
{
"manifest_version": 2,
"name": "Random Plugins",
"version": "0.1"
"background": {
"scripts": ["background.js"],
"persistent": false
}
"content_scripts": [
{
"matches": ["http://*/*", "https://*/*"],
"js": ["plugins.js"]
}
]
}
【问题讨论】:
-
您在
background对象的右大括号和"content_scripts"键之间缺少,,在值"0.1"和键之间也缺少"background"键:"background"
标签: javascript google-chrome-extension