4 ms·
For context (and also protip if you weren't aware), there's already precedent for user-defined CSS in HN. I don't remember if everyone has access to it, but the
by andrewflnr 7y ago
For context (and also protip if you weren't aware), there's already precedent for user-defined CSS in HN. I don't remember if everyone has access to it, but there's a topcolor setting in your profile that sets the color of the top bar. Maybe that could be extended to include other CSS properties? I wouldn't mind having to write hex color codes...
- _bxg1 7y agoAn open entry field for custom CSS would be a clunky but still welcome solution to this problem. It would also be extremely low-risk and low-effort on the maintainers' parts.
- dang 7y agoI 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.
- andrewxdiamond 7y agoReddit had issues because user defined CSS was download and ran to other user's devices. In this case, you would only be able to affect your own version of the site, so any attack vector is mitigated
- dang 7y agoThat's a really good point.
- andrewflnr 7y agoI was thinking literally a handful of text fields validated against /[a-f0-9]{6}/. But yeah, maybe not quite as trivial as we would like.