[Greasemonkey] Script broken in 0.6.3 in FF 1.5b2

Gareth Andrew freega at freegarethandrew.org
Mon Oct 10 19:23:29 EDT 2005


Hi Mattias,

The script adds event handlers using the onXXX properties, specifically
onclick in setToggle, and onkeypress in the main anonymous function.
This method of setting event handlers is not supported by Greasemonkey
and Firefox 1.5+, instead event handlers should be set by using the
addEventListener() method.  There is plenty of information on this in
the archives, and comprehensive documentation at
http://dunck.us/collab/GreaseMonkeyUserScripts#head-4ac4d1e80f8bbd66bf4f1fbea77ea2390b6a2870

Gareth.

On Mon, 2005-10-10 at 17:51 +0200, Mattias Hällkvist wrote:
> Hi,
> 
> I'm running the latest 0.6.3 version of greasemonkey and now one of my
> favorite scripts seam to not be working =(
> 
> The script in question is "Quick Gallery". Found
> here<http://www.vandenoever.info/software/greasemonkey/quickgallery.user.js>.
> The script preloads and makes photo gallery pages easy to navigate with
> mouse and arrow keys but with the newest greasemonkey and firefox it just
> loads the pictures like default.
> 
> Bye & Thanks!
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey



More information about the Greasemonkey mailing list