News for hackers. Stuff that matters.
Re:Ask HN: Dark mode for HN please? by pwdisswordfish2 on Saturday May 16, 2020 @12:36AM (#23200523)
"No fancy fonts, no javascript, no nothing."

Truthfully, there is some Javascript. For example, onclick(). Voting without Javascript requires some extra effort.

Re:Ask HN: Dark mode for HN please? by alpaca128 on Saturday May 16, 2020 @04:19AM (#23201470)
True, but doesn't this even save bandwidth because it doesn't need to reload the whole page just to update that detail? Either way it still works without JS, which can't be said about most modern websites.
Re:Ask HN: Dark mode for HN please? by pwdisswordfish2 on Saturday May 16, 2020 @05:30AM (#23201909)
"... which can't be said about most modern websites."

While I understand and agree with your point, I have personally found this quoted portion to be a false assumption.

To me, "works" means I can retrieve the content of the page without using JS. If the websites we are discussing are ones where the primary purpose is reading, like HN, most will "work" for me without JS, so long as I do not rely on try using a "modern browser" to retrieve the content. In fact, I cannot even think of a single website meant for reading that I cannot read without a Javascript-enabled browser.

Re:Ask HN: Dark mode for HN please? by agustif on Saturday May 16, 2020 @06:11AM (#23202161)
Any newspaper website with a paywall or cookiewall or anti-adblock thingy maybe?

That's not much readable without some trickery

Re:Ask HN: Dark mode for HN please? by pwdisswordfish2 on Saturday May 16, 2020 @07:43AM (#23202626)
Not trickery, just avoid using "modern browser" to make the HTTP request.

Name any newspaper website you think is "not much readable" without Javascript or cookies and I can prove that is a false assumption.

Re:Ask HN: Dark mode for HN please? by im3w1l on Saturday May 16, 2020 @05:52AM (#23202038)
> without some extra effort

Thanks for the riddle! I guess you could use iframes?

Edit: Ohhh and you could use data-urls as iframe src, so as not to make a large number of requests.

Re:Ask HN: Dark mode for HN please? by noisem4ker on Saturday May 16, 2020 @05:37AM (#23201950)
This is JavaScript done right and worth keeping enabled.