Who seriously thought the Battery Status API was a good idea? Someone thought this was useful enough to write a spec for it...
Granted I get folks might feel a rando website that is resource intensive would be horrific, but maybe we're talking about some specific web app / use case.
You should not be able to do that; It's a feature that you cannot do that.