I want to set a listener for console.log() and do something with the message without preventing the default behaviour. So, the console of the dev tools should g
console.log()
This is a small hack, but I'm not sure there is a better solution:
console._log_old = console.log console.log = function(msg) { alert(msg); console._log_old(msg); }