Extend Chrome Inject to iFrame with JavaScript

I am working on a Chrome extension that allows the user to open the site in an iframe in a new tab. My goal is to let them modify CSS by injecting code through JavaScript from the parent window, but I am only blocking due to problems with the source code.

Is there any way around this? I know that I saw other extensions doing similar things.

+5
source share
1 answer

I believe what you are looking for

chrome.tabs.executeScript

with allFramesset totrue

The documentation can be found here http://developer.chrome.com/extensions/tabs.html#method-executeScript

script iFrames . CSS:)

+5

All Articles