So, to give a basic description of my issue.
I have a extension that is working right now (finally) that wraps phonenumbers in an type of tag.
It is workin
This is an updated answer using MutationObserver, since MutationSummary is not working anymore:
var observer = new MutationObserver(function(mutationsList) {
console.log(`Something has changed`);
});
observer.observe(document.querySelector('.whatever'), {
attributes: true,
characterData: true,
childList: true,
subtree: true
});
.whatever selector to whichever class/id you are interested in.true/false in the subtree option in case you are interested in children modifications of the selector or not.