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...
Ask HN: Dark mode for HN please?
461–469 of 469 posts
Re: Ask HN: Dark mode for HN please?
#462Earlier 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.
Re: Ask HN: Dark mode for HN please?
#463Earlier 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…
Re: Ask HN: Dark mode for HN please?
#464Works pretty well.
Re: Ask HN: Dark mode for HN please?
#465Search for "dark-mode" in chrome://flags.
Some browser have it integrated in regular settings already.
Re: Ask HN: Dark mode for HN please?
#466Re: Ask HN: Dark mode for HN please?
#467Earlier 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.)
Re: Ask HN: Dark mode for HN please?
#468Earlier 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…
Re: Ask HN: Dark mode for HN please?
#469Earlier 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.