title: How do I intercept a browser's console events in JavaScript?
body: <p>I need to make an HTML pseudo console (a normal div to append console logs, info, warnings and errors). All solutions I've seen so far only work with events which I directly initiate. But not when the browser itself logs an error (like from a 404 fetch event). Is there any way I can intercept the browser-initiated console events as well?</p>