HighDots Forums  

greasemonkey last script to execute

Javascript JavaScript language (comp.lang.javascript)


Discuss greasemonkey last script to execute in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
hpessotti@gmail.com
 
Posts: n/a

Default greasemonkey last script to execute - 05-01-2006 , 02:18 PM






Is there any way to mark a script to be the last one to be executed,
but BEFORE the images are loaded??

I mean, after DOMContentLoaded and before Load event, but the last one
to be executed.


Reply With Quote
  #2  
Old   
Randy Webb
 
Posts: n/a

Default Re: greasemonkey last script to execute - 05-01-2006 , 03:28 PM






hpessotti (AT) gmail (DOT) com said the following on 5/1/2006 2:18 PM:
Quote:
Is there any way to mark a script to be the last one to be executed,
but BEFORE the images are loaded??
Huh?

Quote:
I mean, after DOMContentLoaded and before Load event, but the last one
to be executed.
Make it the last script block.....

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


Reply With Quote
  #3  
Old   
Csaba Gabor
 
Posts: n/a

Default Re: greasemonkey last script to execute - 05-01-2006 , 05:31 PM



hpessotti (AT) gmail (DOT) com wrote:
Quote:
Is there any way to mark a script to be the last one to be executed,
but BEFORE the images are loaded??

I mean, after DOMContentLoaded and before Load event, but the last one
to be executed.
If I understand you right, you can't do what you're after (except
possibly by rewriting GM source) because the page is parsed before GM
gets ahold of it. That means that the images are already being loaded,
and you can't thwart it. If you have something else in mind, better
lay it out so we can understand the real problem - but probably you are
better off writing to...:

See
http://www.nabble.com/MozDev---greasemonkey-f5604.html
for more on this, which is a GM specific group (it's not the actual
group, but I prefer the way it presents the threads).

Csaba Gabor from Vienna



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.