BetterDiscordApp-v1/js/emotemodule.js

17 lines
401 B
JavaScript
Raw Normal View History

2015-08-25 13:26:36 +02:00
var observer;
(function() {
observer = new MutationObserver(function(mutations) {
2015-08-25 13:29:01 +02:00
mutations.forEach(function(mutation) {
2015-08-25 13:26:36 +02:00
for(var i = 0 ; i < mutation.addedNodes.length ; ++i) {
var next = mutation.addedNodes.item(i);
console.log(next);
}
2015-08-25 13:29:01 +02:00
});
2015-08-25 13:26:36 +02:00
});
obsever.observe(document, {childList: true, subtree: true});
})();