initial temp
This commit is contained in:
parent
3a508767cc
commit
87518da795
|
@ -0,0 +1,16 @@
|
||||||
|
var observer;
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
|
||||||
|
observer = new MutationObserver(function(mutations) {
|
||||||
|
mutations.forEach(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});
|
||||||
|
|
||||||
|
})();
|
Loading…
Reference in New Issue