On 2015-02-25 14:05, 'Ben' via greasemonkey-users wrote:

But is there no function/if condition similar to

if (currentwebpage.loadedcompletel()) {

Greasemonkey scripts can be configured to run at document-end (default) or document-start:
http://wiki.greasespot.net/Metadata_Block#.40run-at

However your page reaches the ready state, at which point the document-end scripts execute, but the page then issues more requests to load additional data. There is no way for Greasemonkey to know when you would consider the page load complete, only when the current loading activities have finished.

PS. There is a convenient script for waiting for required elements available here:
https://gist.githubusercontent.com/BrockA/2625891/raw/waitForKeyElements.js

--
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to