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/*"