[Greasemonkey] How to "SEQUENCE" execution of scripts in gm

Vikas Pandey vickyvirgo2k at gmail.com
Wed Oct 18 12:33:18 PDT 2006


I have a little problem.

I have written a gm script that suffixes some links to any profile/ 
community/ thread link in orkut so that a person can directly go to some 
other place in orkut without going through home-pages.

It is working well.

However, I have then installed someone's gm script that shows the 
photoes of five visitors on the home page (orkut's default is just to 
give the text link, without photo).

Seems, my script is running before that photo script. Hence, even when 
my scripts suffixes all those links to orkut's text links, when this 
photo script runs, it strips what my script has added and I am left 
without and suffixed links with those five recent visitors' photo.

I could not think of any method of resolving it by script.

The only method possible is to be able to sequence the execution of the 
scripts. If that photo script gets executed first and then my script 
gets executed, then that script will not strip what my script is adding 
later-on.

Is there any way in which we can tell gm the order in which we want 
scripts to get executed.

could be an idea to be included in next revision, or am I missing 
something very fundamental about gm.

thanks.
-- 
Vicky


More information about the Greasemonkey mailing list