TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

When Dark Mode for HN?

9 pointsby sm001about 2 years ago
When is Hacker News going to have an option for a dark mode. The bright screen is hurting my eyes today.

13 comments

LinuxBenderabout 2 years ago
I don&#x27;t have an answer for your specific question but if you use Firefox and have the addon uBlock Origin [1] installed then you can adjust the colors<p>about:addons -&gt; uBlock -&gt; Preferences -&gt; My Filters, then add<p><pre><code> ## HN Color news.ycombinator.com##html:style(background-color: #080808 !important) news.ycombinator.com###hnmain:style(background-color: #121216 !important) news.ycombinator.com##.age:style(color: #ccc !important) news.ycombinator.com##.c00:style(color: #ccc !important) news.ycombinator.com##.comhead &gt; a:style(color: #dedede !important) news.ycombinator.com##.comhead:style(color: #dedede !important) news.ycombinator.com##.hnuser:style(color: #ccc !important) news.ycombinator.com##.subtext &gt; a:link:style(color: #ccc !important) news.ycombinator.com##.subtext &gt; a:style(color: #ccc !important) news.ycombinator.com##.subtext:style(color: #ccc !important) news.ycombinator.com##.title &gt; a:style(color: ccc !important; background-color: #000000 !important) news.ycombinator.com##a:link:style(color: #bdbdbd !important) news.ycombinator.com##a:visited:style(color: #adadad !important) news.ycombinator.com##a:hover:style(color: #fd0000 !important; background-color: #000855 !important) </code></pre> Then adjust it however you like it.<p>[1] - <a href="https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;ublock-origin&#x2F;" rel="nofollow">https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;ublock-origin...</a>
pwgabout 2 years ago
&gt; When is Hacker News going to have an option for a dark mode.<p>Browsers have the alternate name &quot;user agents&quot; for a reason, they are ultimately intended to be working for you, the user.<p>Therefore, simply adjust your &quot;user agent&quot; (browser) to give you a dark mode, and you will have a dark mode, without needing or waiting for HN to change anything.<p>The comment from @LinuxBender here shows you one way to do so using uBlock Origin.
satiricabout 2 years ago
Probably never. Sadly the folks at HN have proved over the years that they don&#x27;t really care about making this site&#x27;s ui functional. There&#x27;s no reason I should have to permanently zoom in on this site or make custom CSS just to do work that they should have done years ago. I <i>can</i> do it, but that&#x27;s not the point. Is the gain in &quot;retro styling&quot; really worth the drop in UX? Do the people at HN truly believe that it&#x27;s perfect and everyone who doesn&#x27;t like it is just wrong? Or is it just laziness, (i.e. it works and our core users aren&#x27;t leaving the platform over it, so it&#x27;s not worth working on).<p>I&#x27;d love to be proved wrong though.
SturgeonsLawabout 2 years ago
<a href="https:&#x2F;&#x2F;userstyles.org&#x2F;styles&#x2F;browse&#x2F;ycombinator" rel="nofollow">https:&#x2F;&#x2F;userstyles.org&#x2F;styles&#x2F;browse&#x2F;ycombinator</a>
foobarbaz33about 2 years ago
You can paste this snippet into the javascript console (ie F12). It&#x27;s my 5 minute attempt at artsy dark colors. Code blocks are red as in Sith (star wars). And as a warning that code is dangerous.<p><pre><code> (function hackerNewsDarkMode() { let bg = &#x27;#35352B&#x27;; let fg = &#x27;#EEEED1&#x27;; let tables = document.getElementsByTagName(&#x27;table&#x27;); for (let i=0; i&lt;tables.length; i += 1) { tables[i].style.backgroundColor = bg; tables[i].style.color = fg; } let codes = document.getElementsByTagName(&#x27;code&#x27;); for (let i=0; i&lt;codes.length; i += 1) { codes[i].style.backgroundColor = &#x27;#300000&#x27;; codes[i].style.color = &#x27;#FF0000&#x27;; } let spans = document.getElementsByTagName(&#x27;span&#x27;); for (let i=0; i&lt;spans.length; i += 1) { spans[i].style.backgroundColor = bg; spans[i].style.color = fg; } let a = document.getElementsByTagName(&#x27;a&#x27;); for (let i=0; i&lt;a.length; i += 1) { a[i].style.backgroundColor = bg; a[i].style.color = &#x27;#66CDAA&#x27;; } let divs = document.getElementsByTagName(&#x27;div&#x27;); for (let i=0; i&lt;divs.length; i += 1) { divs[i].style.backgroundColor = bg; divs[i].style.color = &#x27;#FFC0CB&#x27;; } let textAreas = document.getElementsByTagName(&#x27;textarea&#x27;); for (let i=0; i&lt;textAreas.length; i += 1) { textAreas[i].style.backgroundColor = &quot;#000000&quot;; textAreas[i].style.color = fg; } document.body.style.backgroundColor = &#x27;#000000&#x27;; document.body.style.color = &#x27;#FFFFFF&#x27;; }());</code></pre>
KomoDabout 2 years ago
I just use darkreader with a toggle
评论 #34924581 未加载
binchillinabout 2 years ago
No native dark mode is probably a feature to ensure you don&#x27;t procrastinate a lot on the platform.
评论 #34908319 未加载
livinglistabout 2 years ago
Shameless plug: I have built a HN client app with true dark mode, feel free to give it a look.
loa_in_about 2 years ago
I can see dark mode on vanilla Android Chrome with no problems. Misconfigured browser or system theme perhaps?<p><a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;3Ipp8oX.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;3Ipp8oX.png</a>
ninethirtyabout 2 years ago
look great in kiwibrowser <a href="https:&#x2F;&#x2F;kiwibrowser.com&#x2F;features&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kiwibrowser.com&#x2F;features&#x2F;</a>
morelinksabout 2 years ago
Dang said he’d do it at one point and then it was never done. I desperately want it for reading in bed (iOS). Some day…
评论 #34907065 未加载
评论 #34909940 未加载
soupbowlabout 2 years ago
Dark mode will be available shortly after ipv6 is enabled, just wait a few more years.
achairapartabout 2 years ago
If you don&#x27;t mind the header color:<p><pre><code> html {filter:invert(.9) contrast(90%);}</code></pre>
评论 #34931952 未加载