How to access window from chrome extansion?

Hi!
write the plugin. code of site I see that he turns to the window.top.minimap, but under plugin I have no access to it.
For example if you write in the plugin "console.log(window)" gives not the same in the console "console.log(window)". in the first case gives, as I understand it, the plugin window and the second window of the website. how do I get the window of the site and therefore to all the variables, in particular the minimap?
April 7th 20 at 11:57
1 answer
April 7th 20 at 11:59
The extension code should incorporate the new script into the page. This script will have access to the page context, But you will lose access to the context extensions

Find more questions by tags Extensions for browsersGoogle ChromeHTMLJavaScript