Chrome未检测到扩展程序的内容脚本

时间:2014-01-08 19:34:41

标签: javascript google-chrome google-chrome-extension manifest google-chrome-devtools

我最近创建了一个重定向扩展程序并将其解压缩到Google Chrome上。不工作后,我去调试它。但是,我的内容脚本未显示在Chrome开发人员工具的“内容脚本”标签下。它不应该出现在那里吗?或者我的代码错了吗?

代码:

{
  "manifest_version": 2,

  "name": "myCache",
  "description": "This extension redirects from iBoss' page blocked website to the earlier targeted website.",
  "version": "1.0",

  "content_scripts": [
    {
      "matches": ["http://cb.iphantom.com/*"],
      "js": ["redirect.js"]
    }
  ],

  "background": {
    "scripts": ["background.js"],
    "persistent": true
  },

  "browser_action": {
    "default_icon": "icon.png"
  }
}

0 个答案:

没有答案