How can I run a Greasemonkey function after an AJAX update? How can I run a Greasemonkey function after an AJAX update? ajax ajax

How can I run a Greasemonkey function after an AJAX update?


This is a common problem.

Use the waitForKeyElements() function as shown in this answer.

By default, it will handle every new element, of the type that you specify via jQuery selector, once each, and within milliseconds of that new element appearing.

~~~
Link to the target page and specify exactly what you are doing for a more specific application.