I’m developing a Chrome extension that ships jQuery and jquery is referenced from the manifest.json and works as expected when I reference to it from other JS files in my extension package.
However from Chrome console, even though I know my extension is loaded jQuery is not accessible
I tried accessing it like this:
$('div').append(); etc. or
jQuery
and neither of them works.
Not having console with jQuery support hinders the development process a lot.
I would define your additional content script which would embed jQuery into every page.
manifest.json
And inside
jquery-loader.js:This way you would have jQuery on any page.