You can style pages using uBlock Origin too, I configured the following custom filter under My Filters to:
1. Increase the font-size 2. Remove the white background for light mode 3. Respect system dark mode and have a nice dark theme
Snippet (hopefully HN renders it ok):
! Hacker News: bigger text + soft light theme + dark theme that follows the system setting
news.ycombinator.com##html:style(zoom: 1.25 !important)
news.ycombinator.com##.comment, .commtext:style(font-size: 10pt !important; line-height: 1.45 !important)
news.ycombinator.com###hnmain:style(max-width: 960px !important)
! Light
news.ycombinator.com##:matches-media((prefers-color-scheme: light)) body, #hnmain, input[readonly]:style(background-color: #f1eee6 !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: light)) .subtext, .comhead, .subtext a:link, .comhead a:link:style(color: #666 !important)
! Dark
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) html:style(color-scheme: dark !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) body:style(background-color: #111 !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) #hnmain, input[readonly]:style(background-color: #1c1c1c !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) td[bgcolor="#ff6600"]:style(background-color: #b34700 !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) .pagetop, .pagetop a:link, .pagetop a:visited:style(color: #111 !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) body, td, .default, .title, .subtext, .comhead, .yclinks:style(color: #8f8f8f)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) a:link, .c00, .c00 a:link, .admin, .admin td:style(color: #dcdcdc !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) a:visited, .subtext a:link, .comhead a:link:style(color: #8f8f8f !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) .c5a, .c5a a:link, .c5a a:visited:style(color: #a8a8a8 !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) .c73, .c73 a:link, .c73 a:visited, .c82, .c82 a:link, .c82 a:visited:style(color: #8a8a8a !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) .c88, .c88 a:link, .c88 a:visited, .c9c, .c9c a:link, .c9c a:visited:style(color: #707070 !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) .cae, .cae a:link, .cae a:visited, .cbe, .cbe a:link, .cbe a:visited:style(color: #575757 !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) .cce, .cce a:link, .cce a:visited, .cdd, .cdd a:link, .cdd a:visited:style(color: #424242 !important)
news.ycombinator.com##:matches-media((prefers-color-scheme: dark)) input, textarea:style(background-color: #262626 !important; color: #dcdcdc !important; border: 1px solid #444 !important)
You can tweak them as you please :)I do my dark mode with 1 VERY hacky ublock origin rule:
html:style(filter: invert(90%) hue-rotate(180deg))HowTo:
open the menu via the 'uBlock Origin' Button (not Browser extension Settings) ->'Open the dashboard' -> paste plain text block from above -> 'Apply changes'
looking good, thank you!
Excellent! Thank you so much. Dark mode on HN is the only thing I wanted here and I was too lazy to fix this on my own.
nice i didn't want to install a new chrome extension
here are some pictures:
https://gist.github.com/dorianmariecom/3ce3790f4a99e88219e19...
I'm also using uBlock to style some websites. Here's my theme for HN: https://dariuszwinkler.com/blog/ublock-website-themes/