News for hackers. Stuff that matters.
Re:How to Hack the Developer Console to be Needlessly Intera... by cheapsteak on Wednesday December 25, 2013 @02:45AM (#6962528)

    say("\n:sparkles::sparkles: :star2: :sparkles:\n     :christmas_tree: \n :sparkles: :christmas_tree::christmas_tree:  :sparkles:\n   :christmas_tree::red_circle::christmas_tree:\n  :christmas_tree::ribbon::red_circle::christmas_tree:\n :christmas_tree::large_blue_circle::christmas_tree::red_circle::christmas_tree:  :sparkles:\n:christmas_tree::red_circle::christmas_tree::ribbon::large_blue_circle::christmas_tree:")   

For those of you who want to play around with the emoji stuff and feel bad about spamming chat:

    function test(message) {
      events.chat({name: "test", message: message})
    }
afterwards call `test` instead of `say`
Re:How to Hack the Developer Console to be Needlessly Intera... by jwise0 on Wednesday December 25, 2013 @06:24AM (#6962819)
Other interesting things to try -- you can create something to call into to synthesize motion with something like:

  function domove(x,y,a) { moveFlag(me.flag, x, y); setRotate(me.flag, a); emit('motion', {x: x, y: y, id: me.id, c: me.country}); emit('scroll', {id: me.id, angle: a}); };
and then you can do more interesting stuff along the lines of:

  a=0; function f () { a += 5; domove(a, Math.sin(a / 50) * 100 + 200, a); if (a < 1000) setTimeout(f, 20); } setTimeout(f, 10);
Re:How to Hack the Developer Console to be Needlessly Intera... by cheapsteak on Wednesday December 25, 2013 @05:05AM (#6962728)
I hope I'm not breaking any rules replying to own post (tried to edit but wouldn't let me)

better tree:

    test("\n:sparkles::sparkles:    :star2:  :sparkles:\n        :christmas_tree:\n  :sparkles:   :christmas_tree::christmas_tree:    :sparkles: \n:sparkles:    :christmas_tree::red_circle::christmas_tree:  :sparkles:\n     :christmas_tree::ribbon::red_circle::christmas_tree:   :sparkles:\n    :christmas_tree::christmas_tree::christmas_tree::ribbon::christmas_tree:\n :sparkles:  :christmas_tree::red_circle::christmas_tree::christmas_tree:    :sparkles:\n    :christmas_tree::christmas_tree::red_circle::christmas_tree::christmas_tree:\n   :christmas_tree::ribbon::christmas_tree::christmas_tree::red_circle::christmas_tree: :sparkles:\n:sparkles::christmas_tree::red_circle::christmas_tree::ribbon::red_circle::christmas_tree::christmas_tree:\n        :door:")
Can't believe I spent half an hour on Christmas day making an emoji tree
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.
Re:How to Hack the Developer Console to be Needlessly Intera... by atguy on Wednesday December 25, 2013 @04:59AM (#6962719)
This is so useless that it's awesome! I had no idea that could be done.
Re:How to Hack the Developer Console to be Needlessly Intera... by chattoraj on Wednesday December 25, 2013 @03:37AM (#6962600)
Feel like it’s worth highlighting this part of the post:

>There is no good reason to do this

I get that it’s a cool easter egg, but please, please don't do this.

Re:How to Hack the Developer Console to be Needlessly Intera... by skrebbel on Wednesday December 25, 2013 @03:59AM (#6962632)
Why not?
Re:How to Hack the Developer Console to be Needlessly Intera... by joshfraser on Wednesday December 25, 2013 @04:10AM (#6962645)
All the extra JavaScript makes your site slow.
Re:How to Hack the Developer Console to be Needlessly Intera... by jwise0 on Wednesday December 25, 2013 @06:23AM (#6962818)
Can you quantify how slow? This is a common refrain against some of these sorts of things (and, indeed, the modern web in general): "adding this thing makes your site slow". But I rarely see quantified results...
Re:How to Hack the Developer Console to be Needlessly Intera... by konklone on Wednesday December 25, 2013 @04:14AM (#6962653)
it's actually a super tiny amount of JavaScript, you'd be surprised what you can do without something like jQuery bulking things up.
Re:How to Hack the Developer Console to be Needlessly Intera... by jayhuang on Wednesday December 25, 2013 @07:13AM (#6962859)
Just had a nice conversation with the Great Leader, Assad, and my wife as Barack.

Hilarious spontaneous conversations aside, cool idea!

Re:How to Hack the Developer Console to be Needlessly Intera... by joshfraser on Wednesday December 25, 2013 @04:11AM (#6962647)
I had no idea you could add styles to the console. Neat.
Re:How to Hack the Developer Console to be Needlessly Intera... by esalman on Wednesday December 25, 2013 @05:42AM (#6962765)
This post is sitting at the top for several hours now.