Live data from Hacker News

Show HN: I built a Hacker News userscript to make this site more legible

github.com

11–20 of 53 posts

Re: Show HN: I built a Hacker News userscript to make this site more legible

#11
post #10

Very impressive and very clean. I’ve set up many user scripts for websites I browse for all of my devices. User scripts are indispensable to me. Two quirks: 1. In Safari on my iPad, “add comment” is invisible, since it still uses the white font from vanilla HN. I’ve fixed this by adding “color: #333;” just below your existing “background-color: white;” 2. There seems to be no way to indicate if I have already read a…

Ah, I'll take a look at those. Thanks.

Re: Show HN: I built a Hacker News userscript to make this site more legible

#12
I take a minimalistic approach, which is not perfect, but good enough for me, and gets my preferred font size and dark mode support. CSS:

:root { color-scheme: light dark; }

* { background-color: revert !important; color: revert !important; font-size: revert !important; }

center { text-align: left !important; }

table#hnmain { width: 100% !important; }

Re: Show HN: I built a Hacker News userscript to make this site more legible

#16
Try to not recommend Tampermonkey, it is closed source, slow, bloated and a bit sketchy, uses Google Analytics and right now the privacy policy link in their website isn't working for me (redirects to the home page). There are better, faster, less bloated and open source alternatives, like Violentmonkey which now has a reasonable privacy policy (https://violentmonkey.github.io/privacy/).

Btw thanks for the script, the alternating colours between comments and replies should be part of the standard hacker news experience, thanks for adding that.

Re: Show HN: I built a Hacker News userscript to make this site more legible

#18
The background of the center section of Hacker News is #F6F6EF. The colour of the main text of a post is #828282, which results on a contrast ratio of 4:1 (calculated here [1]).

This is below the minimum required level to conform to the Contrast and Color Accessibility requirements of the WCAG... a pity! See [2]. The minimum contrast is recommended to be 4.5:1.

The comments (below the main post text) text colour is black (#000000) and that has good contrast - it reaches level AAA in the WCAG guidelines, which is the best rating. Unfortunately as mentioned by OP downvotes faint the colour of the text!...

[1] https://www.accessibilitychecker.org/color-contrast-checker/

[2] https://webaim.org/articles/contrast/

Re: Show HN: I built a Hacker News userscript to make this site more legible

#19
post #18

The background of the center section of Hacker News is #F6F6EF. The colour of the main text of a post is #828282, which results on a contrast ratio of 4:1 (calculated here [1]). This is below the minimum required level to conform to the Contrast and Color Accessibility requirements of the WCAG... a pity! See [2]. The minimum contrast is recommended to be 4.5:1. The comments (below the main post text) text colour is b…

It would be nice if the maintainers of the site reviewed these particular design choices at some point, to perhaps opt for something more conformant with those accessibility guidelines. Although to be honest 4:1 is not far from the minimum. Just increasing it a little would 'technically' be enough. The downvoted comments colours are another topic...

Accessibility is important!...

Post reply on HN