I\'m just fiddling around with user scripts in chrome right now, so please bear with my potential ignorance/idiocy.
In the page I\'m writing a script for, there is a
This will give you a reference to the window object (as p):
var p = unsafeWindow; if(window.navigator.vendor.match(/Google/)) { var div = document.createElement("div"); div.setAttribute("onclick", "return window;"); p = div.onclick(); };