If you are only interested in registering when a node has been inserted or removed from the DOM, and which node it was and where it was inserted or deleted, you can do something like this:
(function(){
function log( e ) {
console.log( e );
}
document.body.addEventListener( "DOMNodeInserted", log );
document.body.addEventListener( "DOMNodeRemoved", log );
})();
, , .