"content_scripts": [
{
"matches": ["http://code.jquery.com/*"],
"js": ["jquery.js", "popup.html"]
}
]
But when I’m reloading the extension, I get an error that the extension could not load jquery.js.What I’m doing wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems like you think you’re using
http://code.jquery.com/jquery.js, but that’s not the case. Your current setup meeans: on any page onhttp://code.jquery.com, loadindex.htmlandjquery.js.Those files should be saved as part of your extension.
jquery.jsat least – I don’t think you wantpopup.htmlto be part of your content script – it is not a JavaScript file, and an extension’s popup is something completely different than a content script.