1 | initial version |
jQuery can be added to programmatically injected content scripts in Google Chrome extensions by following these steps:
"web_accessible_resources": [
"jquery.js"
]
var jqueryScript = document.createElement('script');
jqueryScript.src = chrome.extension.getURL('jquery.js');
document.head.appendChild(jqueryScript);
$(document).ready(function() {
// Do something with jQuery
});