I have js called iframeInjector
var iFrame = document.createElement ("iframe");
iFrame.src = chrome.extension.getURL ("http://google.com");
document.body.insertBefore (iFrame, document.body.firstChild);
than I have this manifest: { "manifest_version": 2,
"content_scripts": [ {
"js": [ "iframeInjector.js" ],
"matches": [ "https://*/*","<all_urls>"
]
} ],
"description": "Inject a google site",
"name": "Inject google",
"version": "1",
} but when I open site iframe url is chrome-extension://dhnpacpfjbnmnbefjlfgemkphjilciak/http://google.com. What Im doing wrong?