Hi there

I'd like to make a web browser that can integrate an extension like Greasemonkey (using custom JavaScript scripts).

I already know about evaluateJavaScript(const QString &scriptSource), but there's... a problem.

Indeed, I can't inject JS properly. If I call this function using the signal loadStarted(), the JavaScript will be injected before page is rendered, means it won't wok at all. If I call it using the signal loadFinished(), it will be way too slow! Especially when you have a slow internet, like myself...
The only solution I found is using loadProgress(int), and injecting script around 70% of loading, but it's slow and not accurate.

I need to find a signal that can tell me if DOM is loaded, like greasemonkey does...

Do you have any ideas? Thank you in advance.