I can't manage to load jQuery in a Google Chrome userscript.
This is how my manifest.json looks:
{
//...
"content_scripts" : [{
"js" : ["http://code.jquery.com/jquery-1.7.1.js", "code.js"],
//...
}],
//...
}
But in code.js, $ is undefined.
code.js otherwise works, and actually I have a bookmarklet working (that uses the site's version of jQuery).
I've tried minified and unminified versions of jQuery, hosted or local.
I've also tried embedding a minified jQuery at the top of my code.js, but if I do that the code does not even run, actually the whole file does not run (even an alert before the chunk of minified jQuery).
If you want to look at it, here it is.