spirit
unread,Apr 7, 2011, 9:50:09 AM4/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to greasemonkey-users
Ok, I checked the matter thoroughly. On new profile in Firefox4 instal
only Greasemonkey.
And now, I wrote script who randomly do sth (like go to other page),
using this syntax:
t = setTimeout(function(){document.location.pathname = "xxx"}, 500);
And all will works fine, of course in anonymous function can be any
command. Sometimes to debug my script I use alert box. But in Firefox
4 when I use alert, this comand broke every timeout and interval, and
script stop work. Just one alert and script not work, even if I dont
use alert again. Delete alert in my script, refresh tab does not
change anything.
If I change anonymous function to normal function (with name), script
re-starts and work fine. If I dont do that, I must close tab and open
again << and all work, until I will not use alert again.
What is interesting, if I make and put button on page, add to it
eventlistener click (which activates alert) and press this buton,
script work correctly, so this kind of alert does not spoil anything.
Firefox 3.6.16 that problem is no exist, I use Windows XP. Any
solution or explain?