Last active
February 4, 2026 04:45
-
-
Save mkobit/5dde6e585083a599fda5bb2fb6dffd5e to your computer and use it in GitHub Desktop.
A soft dark mode override for Hacker News using uBlock Origin filters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ! Forked from https://news.ycombinator.com/item?id=36344815 | |
| ! Main background and container colors | |
| news.ycombinator.com##body:style(background-color: #0d1117 !important;) | |
| news.ycombinator.com###hnmain:style(background-color: #0d1117 !important; border: 1px solid #30363d !important;) | |
| ! Header and navigation bar styles | |
| news.ycombinator.com##td[bgcolor="#ff6600"]:style(background-color: #161b22 !important;) | |
| news.ycombinator.com##.pagetop:style(color: #8b949e !important; font-weight: bold !important;) | |
| news.ycombinator.com##.pagetop a:style(color: #c9d1d9 !important; text-decoration: none !important;) | |
| news.ycombinator.com##.hnname a:style(color: #d18616 !important;) | |
| news.ycombinator.com##img[src="y18.svg"]:style(filter: invert(1) hue-rotate(180deg) !important; border: 1px solid #30363d !important;) | |
| ! Link colors for better visibility and action items | |
| news.ycombinator.com##a:link:style(color: #58a6ff !important;) | |
| news.ycombinator.com##a:visited:style(color: #8957e5 !important;) | |
| ! Main text and comment readability | |
| news.ycombinator.com##.commtext:style(color: #d1d5db !important; line-height: 1.45 !important;) | |
| news.ycombinator.com##.c00:style(color: #d1d5db !important;) | |
| news.ycombinator.com##font[color="#000000"]:style(color: #d1d5db !important;) | |
| ! Subtext and metadata styling | |
| news.ycombinator.com##.subtext:style(color: #6e7681 !important;) | |
| news.ycombinator.com##.subtext a:style(color: #6e7681 !important;) | |
| news.ycombinator.com##.comhead:style(color: #6e7681 !important;) | |
| news.ycombinator.com##.comhead a:style(color: #6e7681 !important;) | |
| ! Input fields and textareas | |
| news.ycombinator.com##textarea:style(background-color: #161b22 !important; color: #d1d5db !important; border: 1px solid #30363d !important; border-radius: 3px !important;) | |
| news.ycombinator.com##input:style(background-color: #161b22 !important; color: #d1d5db !important; border: 1px solid #30363d !important;) | |
| ! User interface elements like voting arrows | |
| news.ycombinator.com##.votearrow:style(filter: brightness(1.2) opacity(0.8) !important;) | |
| news.ycombinator.com##.yclinks:style(filter: brightness(0.8) !important;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment