Can't use injected jQuery

后端 未结 2 1408
自闭症患者
自闭症患者 2020-12-22 02:47

I want to inject jQuery into a web page (with a content script) in a Chrome extension.

I try, but something confuses me.

here is my manifest.json

2条回答
  •  旧时难觅i
    2020-12-22 03:34

    I used this and it's working fine. maybe the path of your jquery is not correct.

    "content_scripts": [{
        "matches": ["http://*/*", "https://*/*"],
        "js": ["js/jquery.min.js", "js/socket/socket.io.js","js/socket/client.js"],
        "run_at": "document_idle"
    }]
    

提交回复
热议问题