This is a really cool script you've written and made me laugh out loud.
It would be a shame though if someone edited / republished / whatever an old script and used it to steal people's github cookies (your code wouldn't be able to filter someone calling a remote script which then ran its own code for instance or a script that evaled a new script based on a string / unicode etc.) It might be best to just run the code in a frame that's not hosted on Github then you're safe.
> 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.
Comments (198) 66 threads
Show all comments
Showing thread 19 of 66
Plus, I'm assuming that since they let anyone run arbitrary code on subdomains, they've thought this through.
function sortArray(a) { alert('Hello StackSort!') }
Question/Answer. =( Good foresight!
It would be a shame though if someone edited / republished / whatever an old script and used it to steal people's github cookies (your code wouldn't be able to filter someone calling a remote script which then ran its own code for instance or a script that evaled a new script based on a string / unicode etc.)
It might be best to just run the code in a frame that's not hosted on Github then you're safe.
https://news.ycombinator.com/item?id=5347430
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.