Answer the question
In order to leave comments, you need to log in
How to find out in greasemonkey that the DOM has changed?
There is a page in which the content is loaded dynamically. I want to write a script that will change this content a little, but I can’t figure out how to find out that the DOM has changed.
I am somewhat far from the web, so such difficulties. jQuery is included in the script, maybe there is some kind of event in it?
Answer the question
In order to leave comments, you need to log in
Now there is MutationObserver . And when I was little and had to go to school two kilometers uphill on ice in winter, we simply checked for the presence of the necessary element / elements through a periodic setTimeout.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question