[Greasemonkey] GM-TNG unsafeWindow gripes

Lenny Domnitser ldrhcp at gmail.com
Thu Jul 28 00:38:06 EDT 2005

Actually, I see one problem with what I just posted. A script cannot
access page variables with what I proposed. So, here's the

window and GM_safeWindow stay as they are, but the global scope checks
GM_safeWindow for native objects first. If they do not exist, then
check window. In code:

with(window) {
  with(GM_safeWindow) {
    // execute the script

More information about the Greasemonkey mailing list