DEV Community

Discussion on: I built a clone of a popular Gmail extension for Firefox. Here is how!

Collapse
 
mecachisenros profile image
Andrei Mondoc

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:

Another common use of the Dom Mutation Events api is in browser extensions...

Collapse
 
paulgaumer profile image
Paul Gaumer

Thank you! I’ll definitely have a look at this API