https页面上的Chrome扩展程序内容脚本?

时间:2011-11-12 05:52:28

标签: javascript jquery google-chrome google-chrome-extension

本周末我将破解Chrome扩展程序,为我一直使用的网站添加键盘快捷键。当我访问该网站的主页时,它会显示,但在我登录并进入管理区域(使用https)之后,我的内容脚本将无法运行。

{
  "name"            : "Keyboard Shortcuts",
  "version"         : "1.0",
  "description"     : "Adds keyboard shortcuts to this great site.",
  "permissions"     : ["https://SITENAME.com/", "http://SITENAME.com", "https://SITENAME.com/*", "http://SITENAME.com/*"],
  "content_scripts" : [
    {
      "matches": ["https://SITENAME.com/*", "http://SITENAME.com/*", "*://SITENAME.com/*"],
      "js": ["jquery.min.js", "hotkeys.js", "script.js"]
    }
  ]
}

您可以在上面看到我的manifest.json文件。有什么想法吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

我通过在网址上添加“www”来解决我的问题。

相关问题