0

我在做一个非常简单的扩展,但是我在注入文件的时候遇到了麻烦。我有一个css文件和一个js文件。没有被注入。 这里是我的清单:Inject.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 
} 

什么可能是错的任何想法呢?

+0

@Cornwell,它是这么简单。非常感谢你 –

+0

不客气!然后,我会将我的评论移至答案。 – Cornwell

回答

0

尝试改变比赛这样:"https://csgo500.com/*"