Load JQuery into a Chrome extension? -


i'm attempting load jquery chrome extension , make equal object i'm wondering how go this? i'd like...

jquery = loadlibraries("jquery-1.4.2.min.js"); 

how this?

edit: i'm injecting content script.

you can put jquery.js extension folder , include in manifest:

{   "name": "my extension",   ...   "content_scripts": [     {       "matches": ["http://www.google.com/*"],       "css": ["mystyles.css"],       "js": ["jquery.js", "myscript.js"]     }   ],   ... } 

you don't need worry conflicts jquery on parent page content scripts sandboxed.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -