adamschwartz / log

Console.log with style.
https://adamschwartz.co/log
MIT License
3.01k stars 140 forks source link

Clear the console, with style #10

Closed JustinDrake closed 10 years ago

JustinDrake commented 11 years ago

The Chrome console (maybe other consoles?) can be cleared with clear(). Typing just clear is clearer (no pun intended) and classier. Just one line:

window.__defineGetter__('clear', function () { clear(); });

adamschwartz commented 10 years ago

This is really cool but doesn't fit in the scope of log.

However, I have added it to another project of mine, terminal.js.