how to intercept innerHTML changes in javascript?
There is a modern way to catch innerhtml changes: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe Example: // identify an element to observe elementToObserve = window.document.getElementById(‘y-range’).children[0]; // create a new instance of ‘MutationObserver’ named ‘observer’, // passing it a callback function observer = new MutationObserver(function(mutationsList, observer) { console.log(mutationsList); }); // call ‘observe’ on that MutationObserver instance, // passing it the element … Read more