[Greasemonkey] Switching to Webpage Context
Vincent Chute
vincent_chute at hotmail.com
Mon Jan 9 13:22:57 EST 2006
Nearly all of my user scripts are simply adding "behaviour" to specific
"friendly" web pages.
Migrating from Greasemonkey 0.5.3 on Firefox 1.0.7 to 0.6.4 on 1.5 meant
some of these stopped working.
5 of 9 worked without greasemonkey related changes (Firefox 1.5 changed what
event.keyCode returns for key events), 2 were simple changes and 2 are
proving more tricky.
What I would like to be able to choose to do is to execute the script
outside the sandbox with the appropriate loss of privileges (I have yet to
use any of the GM APIs).
I tried using unsafeWindow but I didn't manage to get it working
successfully and whilst I could probably get
document.createElement("script"); to work I don't fancy the pain of
maintaining nearly 200 lines of sc.innerHTML += "...." especially with the
effective loss syntax highlighting.
Are there any techniques that I am missing?
Anyone else interested in this ability?
More information about the Greasemonkey
mailing list