I am making a chrome extension.
I would like to be able to access the underlying browser page's window object, basically at-will.
I don't directly control the page in question, so I need some way to inject a script into the DOM, which will respond with the window
object whenever it's queried.
I want to do this in a cleaner fashion than just stringifying a function and injecting it as a <script>
into the DOM.
Is there a clean, standard way to do this?
I have tried to follow the instructions in http://waitingphoenix.com/how-to-make-your-chrome-extension-access-webpage/
but I cannot get a GET_DUCK event to fire anywhere.