Show alert messages in firebug

A cool javascript trick:

1
alert = console.log

then

1
alert('hello')

will show up in Firebug instead of an alert screen:

1
"hello"

Post a comment


(lesstile enabled - surround code blocks with ---)