Lurker News

Comments (198) 66 threads

Earlier comments
cwlb#
run it a few more times, that's the only one it finds.
deathcakes#
I did wonder how long it would take after reading that comic to someone implementing it.

Congratulations!

btipling1 reply#
Quick someone write a 'sort' that steals github session cookies. ;P
gkoberger4 replies#
I only search answers posted before the comic was released for this reason :) (Also, I block any code that uses the word "cookie")

Plus, I'm assuming that since they let anyone run arbitrary code on subdomains, they've thought this through.

_dark_matter_1 reply#
Quick, someone edit your code that has "javascript" and "sort" as keywords so it steals session cookies!
vnorby#
This won't work on Github's subdomain, but you'd do it like this:

  function sort(data) {
     $('body').append('");
     return data.sort();
  }
c-oreills1 reply#
Dammit, just as I was about to write a

function sortArray(a) { alert('Hello StackSort!') }
Question/Answer. =( Good foresight!

gkoberger1 reply#
I also don't allow alerts :)

Continue this thread — 1 reply

VMG#
> Also, I block any code that uses the word "cookie"

That is so incredibly ineffective that you could just as well leave it out. Maybe have a look at https://github.com/jterrace/js.js for a sandboxed environment.

DigitalSea#
This is impressive. I wish I possessed the same skills and determination as you to just go and make something without overanalysing things. This is impressive, beautifully done.

Load more comments