News for hackers. Stuff that matters.
Re:Web pages are becoming too hard to read by bloodbeard on Sunday February 19, 2017 @03:13PM (#13681717)
In the comments, Jim Hall mentions having made a BASH script to get the ratio - but doesn't post it. So I crapped out a Python script (https://gist.github.com/anonymous/51a19ccb44e554affbdca69310...).

It makes me happy to see that my favorite color combo of black and plasma orange (0xFF8000)* is well above acceptable. As is green on black.

* Among the first computers I ever used were terminals with plasma orange on black background - I've always loved it.

I mean the comments in the blog, not the HN comments.

Re:Web pages are becoming too hard to read by legostormtroopr on Sunday February 19, 2017 @07:09PM (#13683102)
This is really cool, I've done something really similar - except it grabs the colors from the HTML itself, so you can use it to check against a HTML file for any issues: https://news.ycombinator.com/item?id=13683096