199
rated 0 times
[
200]
[
1]
/ answers: 1 / hits: 18710
/ 10 Years ago, thu, october 9, 2014, 12:00:00
For my Greasemonkey script, there is part of the code that should run before the page is loaded (@run-at document-start
) and another part of the code that should run after the document is loaded (@run-at document-end
).
Is this possible?
- 1st part of script run
- page is loaded, document is ready
- 2nd part of script run
I'd rather not use jQuery for this.
I tried the onload
event but it didn't work. I think the event cannot be attached if the document is not there yet?
window.document.onload = function(e){
alert(document.onload );
}
More From » greasemonkey