Chrome扩展程序无法加载内容脚本

时间:2016-09-11 18:56:44

标签: javascript google-chrome google-chrome-extension content-script

我正在新文件夹中制作新的Chrome扩展程序,我只创建了2个文件:

的manifest.json

{
  "manifest_version": 2,
  "name": "My Cool Extension",
  "version": "0.1",
  "content_scripts": [
    {
      "matches": [
        "*://*/*"
      ],
      "js": ["onpage.js"],
      "run_at": "document_end"
    }
  ]
}

和onpage.js

alert("hello world");

我在OSX上的chrome 53.0.2785.101(64位)中插入新扩展名。 扩展名已添加到我的扩展栏上,但警报永远不会出现。

0 个答案:

没有答案
相关问题