I’ve created userscript to extend browser console.
- own console object with all methods to prevent errors in old browsers
- using console without context (we can pass console.log as a callback, and no “Illegal invocation” error will be shown)
- production param (debug information only for dev environment )
- time and timeEnd methods (if they are not exist)
- log alias for console.log
sources of inspiration:
- Log() – a Lightweight Wrapper for console.log