On 09/02/11 12:08, smallest wrote:
but, Disqus comments are more challenging. Disqus loads comments
asynchronously, after the page loads, so GM never gets to see them. it
can find the DIV container where the comments will eventually go, but
it's empty when GM runs.

Listen for DOM mutation events on the appropriate node. You'll probably want to e.g.

document.getElementById('disqus_whatever').addEventListener('DOMNodeInserted', function () { ... }, true);

Where the first line of the function is to remove the event listener again.

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to