Make Greasemonkey react to ajax change of an element
问题 There is a page that loads with an empty span like this: <span id="bla"></span> and later fills that span with some text. I need my script to get that text but Greasemonkey runs before it is filled with the text and even the waitForKeyElements function, that I tried to use, is not helping because the element is already there when the page loads. Maybe I need in another way? Currently I am doing: waitForKeyElements ("#bla", get_span_content) 回答1: Since you are already using waitForKeyElements,