I use
document.addEventListener("DOMSubtreeModified", function() {
...
});
to act whenever the DOM of the document is changed.
The problem is: In that function I modify the DOM myself but I do not want this change to call the DOMSubtreeModified event (causing my code to be run over and over again).
Any chance to prevent that?