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
Post a Comment