Live data from Hacker News

A collaborative spreadsheet in less than 45 lines of JS, one library used

jsfiddle.net

31–40 of 69 posts

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#32

Careful, this code runs eval() on all spreadsheet fields. Someone can "collaboratively" steal your jsfiddle.net cookies.

The code runs on the fiddle.jshell.net domain.

that's good :) did not realize

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#33
post #17

I am waiting for someone to reproduce healthcare.gov with 100 lines of code...

that's the spirit ! seriously it would be an awesome idea to create a website with challenges like that. create a substractive synthesizer in js in less than 1k, like old demos

http://js1k.com/

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#34
WARNING: Could there be some kind of script attack ? My Safari browser freezes with 'foo' alert message from this site and it has placed itself as default website so whenever I reopen safari it freezes again.

Let me know if you know how to fix this.

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#36
post #25

Earlier quoted context omitted.

Since jsFiddles run user-generated code by design, I hope that they correctly sandbox and use HTTP-only cookies anyway.

That's a great point. A restricted iframe on a separate domain + httpOnly session cookies just to be safe would do it.

That's what they do already.

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#40

I would love to read about who/how is blocking XSS and censoring!

Oh, that's me: http://jsfiddle.net/sy85U/31/ Just a very quick, crude little hack.

You know what would be cool? Injecting this modified version to all clients, so that everybody act as a censor.
Post reply on HN