Live data from Hacker News

Ask HN: Dark mode for HN please?

news.ycombinator.com

461–469 of 469 posts

Re: Ask HN: Dark mode for HN please?

#461

Earlier quoted context omitted.

Be careful with that: it very probably goes against all sorts of TOS and can get you in trouble

A court recently ruled [1] that LinkedIn had to allow scraping, but it has to be public data (i.e. you can't log into your Facebook account and then scrape all your friends' pages). [1] https://www.eff.org/deeplinks/2019/09/victory-ruling-hiq-v-l...

It's not the scraping itself that I would be worried about, it's using this data to create what could be seen as a competitor (especially if you make it commercial). For a lot of these websites, traffic is essentially money: diverting users to another website using their own content would be very badly received

Re: Ask HN: Dark mode for HN please?

#462

Earlier quoted context omitted.

There's a very solid Stylus theme for HN that I've been using as long as I can remember. Until just now I had honestly forgotten that this wasn't what HN looked like by default. https://userstyles.org/styles/113994/hacker-news-dark

Is there a non userstyles.org link for this? I've blocked cookies on userstyles.org (For obvious reasons) & when you black cookies on that site it gives you a blank page. If you enable cookies it comes back.

https://github.com/Poorchop/userstyles/tree/master/HackerNew...

Re: Ask HN: Dark mode for HN please?

#463

Earlier quoted context omitted.

There's a very solid Stylus theme for HN that I've been using as long as I can remember. Until just now I had honestly forgotten that this wasn't what HN looked like by default. https://userstyles.org/styles/113994/hacker-news-dark

There are 2 HN dark themes available at https://github.com/UserStyles . Midnight lizard (chrome) https://chrome.google.com/webstore/detail/midnight-lizard/pb... is a good extension that can create a dark theme by changing the contrast & things like that. It does it in a way that the same theme will work on a lot of sites. They do have more dark (& light) themes on their site & you can create your own by entering a fe…

I just tried out Midnight Lizard. It works surprisingly well but I can see myself wasting hours fighting with it trying to get it tuned perfectly.

Re: Ask HN: Dark mode for HN please?

#467

Earlier quoted context omitted.

When you click on a link to the news.ycombinator.com domain, what should happen if you prefer dark mode? And vice versa? In comparison, the pure-CSS ideas that some people are posting would work automatically if your browser supports dark mode, and would enlarge the (cached with long ttl) CSS file only very slightly.

Unfortunately, there are some of us who also like the solarized type light mode in HN more than dark mode, but we use dark mode at the system level because the OS light mode is awful. Pure CSS would be quite cool, but we'd probably also need a snippet of JS to add a button allowing to switch between light and dark mode. (There's probably a way to do it without JS that someone will hopefully comment too.)

By using CSS variables, only a few lines of JS are needed- small enough that they can be inlined in the HTML.

Re: Ask HN: Dark mode for HN please?

#468
post #79

Earlier quoted context omitted.

Thanks—that's an important clarification, and maybe is the thing to do after all.

Not so fast! Just because the CSS is only served to the authenticated account which installed it doesn't necessarily mean things are 100% okay. There could be cross-site scripting attacks whereby the user clicks on something evil in a malicious site which attacks that user's HN authenticated session by installing some malicious CSS in their profile. The UI could require a confirmation of the account password for upda…

Two great points. Thanks.

Re: Ask HN: Dark mode for HN please?

#469

Earlier quoted context omitted.

A question, how would the black bar appear in dark mode? It should be set out somehow. Also would be useful if when the black bar appears there’s a link to the person honored.

Which black bar do you mean exactly? I decided to let go of the full orange bar and give the text an orange color instead. I think it looks more balanced.

The black bar that they put up when someone important to the community passes.
Post reply on HN