Browser | |
---|---|
Is HTTPS context | |
Wake Lock API Available | |
Wake Lock API Enabled |
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.
Yes, you can. Open DevTools Console, by hitting F12 in your browser. Execute next command:
screenLock = await navigator.wakeLock.request('screen');
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');})();