For listening to DOM changes I usually go with the MutationObserver interface (I have the impression is not a very well known API), Mozilla has neat article on the matter, quoting the author:
Another common use of the Dom Mutation Events api is in browser extensions...
Nice one!
For listening to DOM changes I usually go with the
MutationObserver
interface (I have the impression is not a very well known API), Mozilla has neat article on the matter, quoting the author:Thank you! I’ll definitely have a look at this API