Won't people realize that doing that would detract from the experience of other users?
Haha, just kidding! Moved everything into a closure. Thanks for suggesting it.
Haha, just kidding! Moved everything into a closure. Thanks for suggesting it.
(I.e. it's client-side, you can't prevent people from doing whatever they want.)
Obviously you can't be stopped from editing the contents of the editing area, so if it works by simply checking for your updates to the editor then you can't stop it.
In non-demo scenarios, you'd have authentication and security rules set up to prevent this sort of abuse / trolling / etc.
The main reason I bothered adding the closure was so people wouldn't copy/paste the code snippet from the HN post and have it work. :-)