Inject.js没有在页面上加载?

时间:2016-05-23 16:14:42

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

我正在进行一个非常简单的扩展,但是我在实际注入注入文件时遇到了麻烦。我有一个css文件和一个js文件。没有注入。 这是我的清单:

{
  "name": "CSGO500.COM BOT",
  "description": "The bot bets on the different colors depending on which bot you choose. Just set your bet amount as normal and start the bot. Reload page to stop bot",
  "version": "1.0",
 "content_scripts": [
    {
      "matches": ["http://csgo500.com"],
      "css": ["mystyles.css"],
      "js": ["inject.js"]
    }
  ],
  "browser_action": {
      "default_title": "Choose your desired bot",
      "default_icon": "icon.png",
      "default_popup": "popup.html"
  },
  "manifest_version" : 2
}

关于可能出错的任何想法?

1 个答案:

答案 0 :(得分:0)

尝试将匹配项更改为:"https://csgo500.com/*"