I have a script that I can\'t change that makes a lot of console.log calls. I want to add another layer and respond if the calls contain certain strings. This works in FF, b
You can also use the same logic, but call it off the console object so the context is the same.
if(window.console){ console.yo = console.log; console.log = function(str){ console.yo('MY CONSOLE!!'); console.yo(str); } }