Dark mode for Hacker News with uBlock Origin
In the uBlock Origin settings, under My filters, you can add a filter that inverts the colors of the page:
news.ycombinator.com##html:style(filter: invert(90%) hue-rotate(180deg); background: white)
Code Snippet 1:
I lowered the inversion amount from 100% to 90% because the resulting colors were too harsh for me, but feel free to play with different values.
This is the result:
