I've been hunting around Google and various JavaScript websites, but I've yet to find an answer for this. Is there any way that I could use JavaScript/JQuery to monitor events such as console.log()?
For example, I'd like to trigger an even when a separate, cumbersome-to-deal with script calls console.log('foo');
When using any web inspector with a JavaScript console, it's easy to see foo
pop up when the script logs it, but is there a way I can hook that event with a different script?