Wake Lock API

Is HTTPS context
Wake Lock API Available
Wake Lock API Enabled

Enable or Disable Screen Lock for this browser tab

What is Screen Wake Lock API

The WakeLock interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running. This interface, and hence the system wake lock, is exposed through the Navigator.wakeLock property. Pay attention that this feature is available only in secure contexts (HTTPS) and is sensitive to page visibility. This means that the screen wake lock will automatically be released when you minimize a tab or window, or switch away from a tab or window where a screen wake lock is active.

Can I activate the same via DevTools Console?

Yes, you can. Open DevTools Console, by hitting F12 in your browser. Execute next command:

screenLock = await navigator.wakeLock.request('screen');

Can I use it as a bookmark in my browser?

Yes, you can. Just drag this LINK to your bookmarks panel, and run it after you open any URL in the tab. Pay attention that the lock will disappear if you close the tab or switch to another one.

Alternatively you can create the bookmark with the next URL:

javascript:(async()=>{screenLock = await navigator.wakeLock.request('screen');})();
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy