Make it possible for chrome extension to check window variables.
Haven't solved for Firefox.