News for hackers. Stuff that matters.
Re:83% of browser features are used by under 1% of top websites by pavel_lishin on Tuesday May 24, 2016 @01:30PM (#11763590)
> ALS, “ambient light events”, would let browsers respond to the light level the laptop, phone or desktop is exposed to if anybody used it.

Can someone give me a good, non-gimmicky example of what this would be used for?

Re:83% of browser features are used by under 1% of top websites by gene-h on Tuesday May 24, 2016 @02:22PM (#11764175)
Provided one can access sensor data fast enough, cross device tracking[0]. Display an ad that lights up the room in such a way that you can read it with the sensor. Communication across an airgap. If you have two devices with screens and said sensors in a dark room, they might be able to communicate by turning screens on and off.

Most speculatively, imaging the environment with compressive imaging[1]. One might be able to flash some patterns on the screen and look at light sensor output to take a picture.

Giving web browsers access to sensors on our devices is sort of scary.

[0] http://arstechnica.com/tech-policy/2015/11/beware-of-ads-tha... [1] http://arxiv.org/pdf/1305.7181.pdf

Re:83% of browser features are used by under 1% of top websites by coroutines on Tuesday May 24, 2016 @03:04PM (#11764565)
I like how you ripped out any positivity around the topic :D You are my hero
Re:83% of browser features are used by under 1% of top websites by reicher89 on Tuesday May 24, 2016 @01:31PM (#11763602)
Hmm, perhaps a text-heavy site could switch between "night" and "day" modes for ease of reading
Re:83% of browser features are used by under 1% of top websites by marssaxman on Tuesday May 24, 2016 @02:09PM (#11764053)
Oh god. No no no. I cannot hate this idea hard enough to overcome my fear that someday this kind of thing might actually happen! This would be the browser's job, under user control, not ever the site's job. My computer, my choice, no you don't get to decide that for me just because you are a web page designer.
Re:83% of browser features are used by under 1% of top websites by TheCowboy on Tuesday May 24, 2016 @02:54PM (#11764473)
It's difficult to pull this off with every website and keep it readable, without any hint from the site. This is why we have CSS for different screen sizes, rather than relying on mobile browsers to make all the decisions, along with an option to view the site in "desktop mode". I do agree that it would be annoying if sites made this decision for users.

But I think the more promising use for this could be enabling aesthetically pleasing color palettes that are power consumption optimized. Picture a HN that switches to darker tones of the current colors when you're on a mobile device.

Re:83% of browser features are used by under 1% of top websites by marssaxman on Tuesday May 24, 2016 @02:58PM (#11764506)
I'm already constantly using "readability mode" to strip away as much of the custom styling as I can, because letting designers run riot - and building browsers that obey their wishes - has turned the web into such a mess. Tighter limits and more end-user control would be better. Different people have different preferences about their browsing experience and should be able to control that without having to rely on every last web designer to make helpful choices, because they really just don't.
Re:83% of browser features are used by under 1% of top websites by dredmorbius on Wednesday May 25, 2016 @05:44AM (#11768656)
My vapourware web browser is tentatively titled "fuck your web designer".

It will ignore site-provided CSS.

Interested?

Re:83% of browser features are used by under 1% of top websites by marssaxman on Wednesday May 25, 2016 @12:02PM (#11770753)
Ha! I would like to give that a try.
Re:83% of browser features are used by under 1% of top websites by mcdoh on Tuesday May 24, 2016 @01:54PM (#11763879)
Just last night I was happy to find that Safari Books Online had a 'night' feature, automatically switching would have saved me thirty minutes of burned retinas.
Re:83% of browser features are used by under 1% of top websites by benologist on Tuesday May 24, 2016 @01:47PM (#11763782)
Do you need an example right now or can you wait until someone does something cool with it that's only enabled because the option exists?

If we stopped adding new capabilities to JavaScript even as new sensors and w/e go mainstream we'd start needing Flash all over again.

Re:83% of browser features are used by under 1% of top websites by zghst on Tuesday May 24, 2016 @02:13PM (#11764093)
Before we add any new APIs we need a permissions interface for the web. Many new APIs add creepy data points that the user be aware that they are providing.
Re:83% of browser features are used by under 1% of top websites by iambateman on Tuesday May 24, 2016 @01:32PM (#11763619)
Yeah. Spotify would stop ads if the audio got too low. In the same way, ambient light could be used to make sure an ad is watched.

Not saying it's the most important case ever, but it would be important if you needed it

Re:83% of browser features are used by under 1% of top websites by vonklaus on Tuesday May 24, 2016 @01:31PM (#11763603)
essentially something like f.lux presumably.
Re:83% of browser features are used by under 1% of top websites by zghst on Tuesday May 24, 2016 @02:01PM (#11763966)
More advanced analytics, tracking your battery + ambient lights + other capabilities...
Re:83% of browser features are used by under 1% of top websites by unlinker on Tuesday May 24, 2016 @01:31PM (#11763601)
Use a white letters on black background theme in case the user is browsing your site in bed with his lights off? ^_^