Is there a way to catch an element when it is loaded?
Say the target webpage's source is this
How would I replace 'milk' with 'soup'?Code:<html> <body> <div id='main'> water </div> <div id='secondary'> milk </div> <div id='last'> cheese </div> <script> {Some script that takes 5 seconds to load} </script> </body> </html>
There's a script that would need to finish loading before my user script even begins, and 'milk' would be displayed for 5 seconds.
If I set my script to run-at start, I could hide the entire div with an injected css style, but I can't add 'soup' to it.
Is there a way to catch the div when it loads?
Or is there some other way to do this?
Thanks in advance.


LinkBack URL
About LinkBacks



Reply With Quote
