instead of:
{document.removeEventListener("mouseover",theirFun,true)},true);
==> "theirFun is not defined"
you should:
{document.removeEventListener("mouseover",unsafeWindow.theirFun,true)},true);
theirFun is not in your greasemonkey scope, but in the activeWindow's scope.
On Sat, Dec 26, 2009 at 6:31 PM, Anthony Lieuallen <[email protected]> wrote:
> On 12/24/2009 12:28 AM, Tim Benham wrote:
>> .. The only guess I have is that .. document.onmouseover=theirFun;
>> makes a copy of theirFun ..
>
> Incorrect.
>
> If you're a new script author, http://wiki.greasespot.net/Main_Page will
> be an invaluable resource. Of special importance is the first
> (external) link there:
> http://commons.oreilly.com/wiki/index.php/Greasemonkey_Hacks/Getting_Started#Pitfall_.231:_Auto-eval_Strings
> ( http://bit.ly/5aGYIR )
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "greasemonkey-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/greasemonkey-users?hl=en.
>
>
>
--
jgabios
http://bash.editia.info
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.