2808 explained code solutions for 75 technologies


chrome-extensionHow to add jQuery support to background script in Chrome extension.


{
 "name": "My",
 // ...
 "background": {
    "scripts": ["jquery.js", "bg.js"],
    "persistent": false
  },,
 // ...
}ctrl + c
"name": "My"

name of the extension for manifest.json

jquery.js

downloaded jquery file

bg.js

name of the script file to load (should be placed in the same dir as manifest.json)