diff --git a/js/temp b/js/temp new file mode 100644 index 0000000..8dbcec4 --- /dev/null +++ b/js/temp @@ -0,0 +1,16 @@ +var observer; + +(function() { + + observer = new MutationObserver(function(mutations) { + mutations.forEach(function(mutation) { + for(var i = 0 ; i < mutation.addedNodes.length ; ++i) { + var next = mutation.addedNodes.item(i); + console.log(next); + } + }); + }); + + obsever.observe(document, {childList: true, subtree: true}); + +})();