{"by":"turblety","descendants":41,"id":33673047,"kids":[33674664,33674294,33676083,33675174,33676657,33674003,33674524,33674457,33683396,33675083,33677406,33682398,33676124,33675202,33675430,33680800,33676412,33679575,33677395,33676186,33675181,33679213,33673065,33690998,33677502],"score":113,"text":"I needed a way to let users write JavaScript to create plugins for a site I&#x27;m building.<p>I couldn&#x27;t find a solution I was happy with, so ended up building one that run&#x27;s it in a web worker on a separate domain from your main site.<p>Hopefully I haven&#x27;t missed anything. If so, please let me know!<p>My website has an interactive demo you can write code in the browser textarea, and see the output on the right.<p>Interactive Demo: <a href=\"https:&#x2F;&#x2F;workerbox.net&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;workerbox.net&#x2F;</a><p>Github: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;markwylde&#x2F;workerbox\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;markwylde&#x2F;workerbox</a>","time":1668882324,"title":"Show HN: Run unsafe user generated JavaScript in the browser","type":"story","url":"https://workerbox.net/"}