Battery API is considered a privacy threat and is known to be used by web trackers. Because of that it was removed from newer Firefox versions.
This extensions removes it from Chromium based browsers on all pages.
The 14 lines of code have no toggles nor options.
You may test the extension functionality on the following battery API demo page: