How would I go about including the jQuery library in my Google Chrome Content Script? I have tried, fruitlessly, of course. Should I use <script src="..." /></script>
, or is there a different/better way to go about it? Thanks in advance!
views:
36answers:
1
+3
A:
Putting it into your background html doesn't do what you want. You need to mention it in your manifest.json, like this:
{
"name": "MyExtension",
"version": "0.1",
"description": "blah blah",
"background_page": "background.html",
"content_scripts": [
{
"matches": ["http://*/*","https://*/*"],
"css": ["extension.css"],
"js": ["jquery-1.4.2.js", "extension.js"]
}
]
}
Grant
2010-07-12 09:26:17
Thanks! That's what I needed. ;)
esqew
2010-07-13 03:07:29