SyntaxFix
Write A Post
Hire A Developer
Questions
A cleaner example using MutationObserver:
new MutationObserver( mutation => { if (!mutation.addedNodes) return mutation.addedNodes.forEach( node => { // do stuff with node }) })