Live data from Hacker News

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

github.com

31–40 of 53 posts

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

#32
post #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!...

While the ridiculously low contrast of downvoted comments is a problem, let's say for a second that "you're meant to ignore it anyway, and we use low contrast to indicate it" is a reasonable idea. Then why is the main submission text lower contrast than the comments?!

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

#34
post #31

Can this script be automatically updated using a remote host?

I think so. Although I'm still new to TamperMonkey and figuring out its quirks.

Whilst I've been putting this together I've asked Tampermonkey to check for updates and it's pulled in the newest version from my repo. So you should get automatic updates when I make changes. Although I believe those changes may take a little time to come through due to github's caching of raw content URLs.

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

#35
My main problem with HN is that when reading it on an iPhone, the font size control seems to be completely ineffective because when I make the font size larger, the layout changes and the browser zooms out to view the whole thing. So I just end up having to zoom in and pan incessantly, which is a much worse experience than just going and finding my laptop.

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

#36
post #19

Earlier quoted context omitted.

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!...

While the ridiculously low contrast of downvoted comments is a problem, let's say for a second that "you're meant to ignore it anyway, and we use low contrast to indicate it" is a reasonable idea. Then why is the main submission text lower contrast than the comments?!

I think the main text has a higher contrast than downvoted comments?… I’m mot sure, actually. If they receive lots of downvotes, their text colour becomes really pale.

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

#37
I have arguably thick sausage fingers, and I routinely accidentally flag or hide posts when trying to visit a link on my phone. It's easy to accidentally do this and hard to undo. I would love it if this site would make destructive actions slightly harder to accidentally perform, or at least make it a setting.

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

#38
post #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,…

Completely agreed on avoid Tampermonkey, but Violentmonkey fails to detect the page on one of my scripts very often. If I refresh it works. This is a match with no wildcards and just a simple path after the URL. Perhaps a simple bug, but doesn't give me much faith in the project.

That's interesting. To confirm, it doesn't appear in the 'Matched scripts' list when that occurs?

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

#39
post #31

Can this script be automatically updated using a remote host?

I think so. Although I'm still new to TamperMonkey and figuring out its quirks. Whilst I've been putting this together I've asked Tampermonkey to check for updates and it's pulled in the newest version from my repo. So you should get automatic updates when I make changes. Although I believe those changes may take a little time to come through due to github's caching of raw content URLs.

Cool. Thanks!

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

#40
I just made my own CSS for this site, too! I'm most proud of replacing those upvote arrow images with a Unicode glyph.

.votearrow { background: none; } .votearrow:after { content: "\25B2"; position: relative; display: block; line-height: 0.9; color: rgb(154, 154, 154); font-size: 12px; }

https://github.com/dillonjohnbrown/user-styles/blob/main/hac...

Post reply on HN