Google Chrome Extensions: How to include jQuery in programmatically injected content script?

后端 未结 5 1179
轮回少年
轮回少年 2020-11-28 22:33

I\'m injecting my content script from the background page when the user clicks the browser action button, like so:

chrome.browserA         


        
5条回答
  •  孤城傲影
    2020-11-28 23:33

    How about adding this to your manifest file

    "content_scripts": [
        {
            "js": [
                    "jquery.js", 
                    "contentscript.js"
                ]
        }
    ],
    

提交回复
热议问题