3 ms·
Dark mode is great, but better to leave the site with low or no style and to apply personal styling preference in the browser via Dark Reader or Stylus extensio
by xnx 1y ago
Dark mode is great, but better to leave the site with low or no style and to apply personal styling preference in the browser via Dark Reader or Stylus extension.
- wakawaka28 1y agoIt would be extremely simple to add dark mode. We're talking about CSS changes here. Instead of having to rely on random extensions being installed everywhere you browse, it could just do what you want from your preferences.
- xnx 1y agoTrue, but Dark Reader and Stylus are great extensions that can improve any site. Being self sufficient is a superpower that should be encouraged on the web. Change colors, fix formatting, remove ads! Power to the user!
- frizlab 1y agoIn that case give me the JSON data, I’ll do the rest.
- throw-the-towel 1y agohttps://github.com/HackerNews/API https://github.com/HackerNews/API
- dredmorbius 1y agoHow many sites offer this? I was chuffed a ways back to find a JSON endpoint at the NYTimes. It was, unfortunately, rather stale. (It's also since vanished and/or I cannot recall the correct URL. The obvious ones, <https://www.nytimes.com/JSON https://www.nytimes.com/JSON> and <https://www.nytimes.com/json https://www.nytimes.com/json> don't work. There is a dev portal however: <https://developer.nytimes.com/docs/archive-product/1/overview https://developer.nytimes.com/docs/archive-product/1/overvie...> FAQ: <https://developer.nytimes.com/faq https://developer.nytimes.com/faq>.)
- deleted 1y ago[deleted]
- wakawaka28 1y agoI agree with self-sufficiency but installing a plugin is not always possible, it's not something you make for yourself anyway, why should I trust the plugin guy, etc. Browsers should really come with dark mode features already but I appreciate the option to install a plugin sometimes.
- Gualdrapo 1y agoSome sites (and something I did while refactoring my portfolio) is levarage that to CSS. You can set is as to read the light/dark mode setting from the OS and provide a "toggle" to let the user choose between light and dark. This doesn't even need JS, just a couple hidden `<input type="radio">`s and some bits of CSS. Although as I've said in another comment, things like this, "go to the top" buttons, cookie banners and the like should be task of the web browser, not of the website.