function reportIn(e){var a = this.lastListenerInfo[this.lastListenerInfo.length-1];console.log(a)}
HTMLAnchorElement.prototype.realAddEventListener = HTMLAnchorElement.prototype.addEventListener;
HTMLAnchorElement.prototype.addEventListener = function(a,b,c){this.realAddEventListener(a,reportIn,c);this.realAddEventListener(a,b,c);if(!this.lastListenerInfo){ this.lastListenerInfo = new Array()};this.lastListenerInfo.push({a : a, b : b , c : c});};
<script>(function(w){var originalAdd = w.addEventListener;w.addEventListener = function(){// add your own stuff here to debugreturn originalAdd.apply(this, arguments);};
var originalRemove = w.removeEventListener;w.removeEventListener = function(){// add your own stuff here to debugreturn originalRemove.apply(this, arguments);};})(window);</script>