I wanted to do that but was told that Reddit encountered security issues with this, and so moved away from it in favor of a complex widget UI, which would not be a good fit for HN.
In this case, you would only be able to affect your own version of the site, so any attack vector is mitigated