I am trying to create a chrome extension that interacts with and changes the content of my University's Job Board in order to add ratings from glassdoor. This is my first extension, so please forgive any obvious errors.
manifest.json:
{
"manifest_version": 2,
"name": "My Cool Extension",
"version": "0.1",
"background": {
"scripts": ["background.js"]
},
"content_scripts": [
{
"matches": [
"https://lehigh-csm.symplicity.com/students/*",
"https://api.glassdoor.com/api/*"
],
"js": ["jquery.min.js", "content.js"]
}
],
}
content.js:
var jsonFile = "https://api.glassdoor.com/api/api.htm?t.p=51863&t.k=kPRnCOceJPO&userip=0.0.0.0&useragent=&format=json&v=1&action=employers&q=test";
$.getJSON(jsonFile, function(data) {
var items = [];
console.log(data);
});
However I am getting the error: Uncaught ReferenceError: $ is not defined
Any clue what I could be doing wrong? I tried browsing some of the similar questions but cannot get their solutions to work.
Thanks!