Intercepting Native function calls
not a good idea though... can get really ugly
by Aditya
HTML
<!doctype html>
<html>
<body>
Hello
<script>
Element.prototype.appendChild = (function(oldAppendChild){
return function(){
oldAppendChild.apply(this,arguments);
console.log(arguments);
};
})(Element.prototype.appendChild);
</script>
</body>
</html>