Display battery level, charging or discharging status.

Latest Version

Version
3.0.1
Update
February 26, 2024
Size
146KiB
Developer
guokai.dev
Category
Users
7,000+
Rating
4.4 ★
Manifest Version
3
Web Store Status
Languages Support
English
中文 (简体)
See more
Permissions
Alarms
Background
Offscreen
Storage
See more

Battery Status Extension

Display battery status on the extension icon and popup page, and support custom notifications.

Updates:
● Version 3.0.0 (2024/02/23): upgrade to manifest v3, and requires Chrome version >= 118.
● Version 2.0.2 (2023/02/08): support playing sound with notifications!
● Version 2.0.0 (2020/12/20): support custom notifications!

State of the extension icon:
● Green color: power level > 15%, Red color: power level <= 15%
● ⚡️flag: charging or fully charged, without ⚡️flag: not charged
● The battery icon itself reflects the overall power level
● Hover over the icon to display battery percentage

The popup page displays detailed information, and you can set whether to show battery percentage on the extension icon.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "__MSG_extName__", "version": "3.0.1", "author": "Guokai Han", "manifest_version": 3, "minimum_chrome_version": "118", "description": "__MSG_extDescription__", "default_locale": "en", "offline_enabled": true, "permissions": [ "alarms", "background", "offscreen", "storage" ], "optional_permissions": ["notifications"], "icons": { "16": "icon/16.png", "48": "icon/48.png", "128": "icon/128.png" }, "background": { "service_worker": "background.js" }, "options_ui": { "page": "options.html", "open_in_tab": true }, "action": { "default_popup": "popup.html" }}
Read more