简体   繁体   中英

Inject.js not loading on page?

I am making a really simple extension, but I am having troubles with making my inject-files actually being injected. I have a css file and a js file. None is injected. Here is my manifest:

{
  "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
}

Any Ideas on what might be wrong?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM