xxxxxxxxxx
<script src="https://apis.google.com/js/client.js?onload=handleClientLoad"></script>
xxxxxxxxxx
Refused to load the script 'https://apis.google.com/js/client.js?onload=handleClientLoad' because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:".
xxxxxxxxxx
Manifest.Json
{
"manifest_version": 2,
"name": "Test_Extension",
"description": "Test",
"version": "1.0",
"content_scripts": [
{
"matches": ["*://www.google.ca/*"],
"js":["trial.js"]
}
],
"icons": {"icon": "icon.png"}
}
xxxxxxxxxx
var imgURL = custom_icon.src = chrome.extension.getURL("icon.png");
document.getElementById("<h3 class="r">").src = imgURL;
xxxxxxxxxx
"content_scripts": [
{
"matches": ["*://www.google.ca/*"],
"js":["jquery.js", "trial.js"]
}