This gist shows two techniques for (simultaneously) accessing the DOM and the window
from a Chrome extension
You can run arbitrary code in the page using chrome.devtools.inspectedWindow.eval( ... )
This solution is shown in the files below prefixed with 1-
.