473,387 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

greasemonkey last script to execute

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.

May 1 '06 #1
2 2153
hp*******@gmail.com said the following on 5/1/2006 2:18 PM:
Is there any way to mark a script to be the last one to be executed,
but BEFORE the images are loaded??
Huh?
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/
May 1 '06 #2
hp*******@gmail.com wrote:
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

May 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Newton | last post by:
I'm having some issues with a greasemonkey script i've made (nothing serious, and you'll notice that by the mess). I made it to learn javascript properly at first but it ended handy and now i'm...
3
by: Matej | last post by:
Hi, I try to assign my function to one <A> element in this GM script, but it doesn't work as hoped for (after pressing Alt+L in Firefox 1.5 nothing happens). Does anybody see what I am doing...
2
by: 9icj4u613jeqrx8 | last post by:
Hi, I need some help with IE browser programming (in .NET). I'm trying to add a button to the IE toolbar, and on the click of the button open a popup window with a remote URL. Secondly, I'm...
3
XtinaS
by: XtinaS | last post by:
I'm trying to write a script for Greasemonkey that will, in LiveJournal, replace a placeholdered embedded YouTube thing with a link to the video. In LiveJournal, you can set an option to have a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.