Im not working on a FB game FYI.
It is an auto-login script to claim in-game freebies.

I am using the site's domain name in the @include. I dont know what else to
include since it works across several pages including domain/sub-domain.

Unless i learn to use AJAX. Or just use a more specific trigger?

Time to read up on AjAX and DOM





Kwah wrote:
> 
> Sounds like you're having problems with your @includes matching
> multiple frames on a page, and the script will be executing on each of
> them for every pageload.
> 
> For the facebook games, IIRC they run on non-facebook servers via an
> iframe and many make use of AJAXy code - in other words, clicking a
> link won't necessarily load another page and consequently won't
> trigger the user-script to be executed. As suggested in another reply,
> you will likely need to listen for other events like node inserted
> etc.
> 
> 
> Actually, @includes are probably the issue - the game's page isn't run
> on a facebook.com page.
> 
> 
> On 28 August 2011 09:59, applepie4 <[email protected]> wrote:
>>
>> so greasemonkey loads before the page event finish loading?
>> That would explain my code firing several times... i think.
>>
>> Is there a way to delay when the code fires?
>> I wrote an automation script that works perfectly IF i run it using
>> firebug
>> after the window fully loads.
>>
>> i guess i could run some junk loop for 5 seconds, but depending on the
>> code
>> it might jam up my firefox/pc.
>> --
>> View this message in context:
>> http://old.nabble.com/Newbie-question-tp32309372p32350632.html
>> Sent from the GreaseMonkey List mailing list archive at Nabble.com.
>>
>> --
>> 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.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Newbie-question-tp32309372p32354707.html
Sent from the GreaseMonkey List mailing list archive at Nabble.com.

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