好的,我是一个JS菜鸟,我可以承认。我一直在阅读并学习如何扩展chrome。所以我想要一个内容脚本和浏览器操作,但我不能让它在我的生命中运行。这可能是我做错事的蠢事,但任何帮助都会受到赞赏。
{
"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"
}
]
}
答案 0 :(得分:2)
我不能写评论,
这里可能缺少逗号
"default_popup": "popup.html"
}, <-- HERE!!
"content_scripts":