News for hackers. Stuff that matters.
Re:How to Hack the Developer Console to be Needlessly Intera... by SerpentJoe on Wednesday December 25, 2013 @08:59AM (#6962998)
I like using toString to convince the console to omit parentheses. Another way would be to use getters, like so:

    window.__defineGetter__('help', function () {
        console.log('I\'m here for you');
    });
Re:How to Hack the Developer Console to be Needlessly Intera... by konklone on Wednesday December 25, 2013 @11:35AM (#6963316)
interesting, I didn't know about that. You still end up having to do a toString override to properly suppress the 'undefined' return value though:

    window.__defineGetter__('help', function () {
        console.log('I\'m here for you'); f = function() {}; f.toString = function() {return " ";}; return f;
    });
But __defineGetter__ would let the execution of the command work in other places than the JS console, so that's cool.