As the title says, I am having trouble making jQuery work when a webpage is loaded, it runs a jQuery code to make every picture on the page into Nicolas Cage. I tried doing the code on the console, it runs fine. Here is the code:
Manifest.json
{
// Required
"name": "NC",
"version": "1",
"description": "NC",
"manifest_version": 2,
"content_scripts": [
{
"matches": ["*://*/"],
"js": ["jquery.js", "nicolascage.js"]
}
]
}
And the jQuery code:
$(document).ready(function(){
$('img').attr('src', 'http://www.dreadcentral.com/img/news/jun11/niccage.jpg');
});
EDIT: I also get an error that says:
content: unsafeWindow retrieval failed! Do you use a script blocker like ScriptNo?
Any help would be appreciated! :)