Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This site showed me a popup telling me that I had less than 10% battery life left and that this site could accelerate the drain, which I thought was hilarious.


Same. I didn't know this was something web pages could collect. Apparently these days only Chrome on Android still supports it.

Found this helpful comment about the background and timeline https://news.ycombinator.com/item?id=38417192

The battery API was rolled out by all the major browsers between 2012 and 2014 as a way to let web pages avoid doing compute-intensive stuff on low battery, but it was pretty much immediately used for fingerprinting as the battery level number was so precise that if you hit two web pages at the same time, the battery level was as good as a cookie. Firefox and Safari/Webkit disabled it in 2016 but Chrome just capped the precision at two digits.


> but Chrome just capped the precision at two digits.

Seems like just giving a straight integer would be enough for the main intention. Or fuzz the decimal points, if higher precision is really needed.


Worked for me with Chrome on macOS.


maybe the welsa supercharger is running low on gas.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: