Inject.js 页面未加载?
Inject.js not loading on page?
我正在做一个非常简单的扩展,但我在实际注入我的注入文件时遇到了麻烦。我有一个 css 文件和一个 js 文件。 None 被注入。
这是我的清单:
{
"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
}
有什么可能出错的想法吗?
尝试将匹配更改为:"https://csgo500.com/*"
我正在做一个非常简单的扩展,但我在实际注入我的注入文件时遇到了麻烦。我有一个 css 文件和一个 js 文件。 None 被注入。 这是我的清单:
{
"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
}
有什么可能出错的想法吗?
尝试将匹配更改为:"https://csgo500.com/*"