mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
* add chrome.power/keep awake as an api sample * support localized file info for extension samples Co-authored-by: Oliver Dunk <oliverdunk@google.com>
686 B
686 B
chrome.power
This extension demonstrates the chrome.power API by allowing users to override their system's power management features.
Overview
The extension adds a popup that cycles different states when clicked. It will go though a mode that prevents the display from dimming or going to sleep, a mode that keeps the system awake but allows the screen to dim/go to sleep, and a mode that uses the system's default.
Running this extension
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Pin the extension and click the action button.