Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear the console, with style #10

Closed
JustinDrake opened this issue Apr 20, 2013 · 1 comment
Closed

Clear the console, with style #10

JustinDrake opened this issue Apr 20, 2013 · 1 comment

Comments

@JustinDrake
Copy link

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(); });

craniumslows pushed a commit to craniumslows/log that referenced this issue May 1, 2013
I tested this in FF 20 with Firebug and Chrome 26 and it worked as
expected.  Issue provided the JS used http://js2coffee.org/ to just
translate it and it worked just fine.
@adamschwartz
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants