For the benefit of the group, the gm-dev thread here appears to
suggest why some scripts get executed mutiple times - namely iframes
with no src attribute.

http://groups.google.com/group/greasemonkey-dev/browse_thread/thread/96bf835d3d8296b2?hl=en


On 30 August 2011 13:16, Pi <[email protected]> wrote:
> I don't know if your explanation is very convincing. Even when I use
> GM_log, it prints that twice.
>
> On Aug 30, 6:38 am, "LWChris@LyricWiki" <[email protected]> wrote:
>> Am 30.08.2011 13:13, schrieb Pi:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > I am using Firefox 6 with GM 0.9.8, and this very simple script is
>> > getting executed twice on a youtube page:
>>
>> > // ==UserScript==
>> > // @name           TestYouTube
>> > // @namespace      Pi
>> > // @include        http://www.youtube.com/watch?v=*
>> > // ==/UserScript==
>>
>> > alert('test');
>>
>> > This is having bad effects on my bigger scripts. Is it a bug?
>>
>> > Thanks
>>
>> alert is unfortunately VERY well known to be the cause of former
>> problems and bugs IIRC. Sometimes the modality that usually should stop
>> any content loading could be the reason why other scripts are also fired
>> but the elements are not available yet as the previously executed
>> testscript's alert freezes the loading process. A closer look into that
>> case/issue seems absolutely sensible. What are the "bigger scripts"
>> supposed to do, did you write them or did you download them at
>> userscripts.org for example (please provide a link then)?
>>
>> Chris
>
> --
> 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.
>
>

-- 
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.

Reply via email to