Hacker GitHub

← All repos

richtr/NoSleep.js

View on GitHub ↗ ★ 2,377 JavaScript

Prevent display sleep and enable wake lock in any Android or iOS web browser.

8 mentions on Hacker News by 6 people: 2 stories, 6 comments · first 2015-04-21 · latest 2025-01-29

Mentions per year 8 mentions · busiest year 2023 (3)
20082026
  1. …because the audio hardware itself needs power). One of those libraries source, for illustration: https://github.com/richtr/NoSleep.js/blob/master/src/index.j...
    comment by padenot · 2025-01-29 · in New speculative attacks on Apple CPUs
  2. …[1] https://developer.mozilla.org/en-US/docs/Web/API/WakeLock [2] https://caniuse.com/wake-lock [3] https://github.com/richtr/NoSleep.js
  3. ▲ 5
    Show HN: A simple web app to combat phone addiction
    story by dtran · 2023-08-24 · 0 comments
  4. …[3] https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake... [4] https://github.com/richtr/NoSleep.js
  5. https://github.com/richtr/NoSleep.js/ I wonder if something like this will get "extended" to work for desktop browsers now if this needs to become more popular? I think something simple like looping an empty audio or video file will…
  6. …in the source I can't see the patch applied that makes it actually work on Safari v15 and higher https://github.com/richtr/NoSleep.js/issues/135
  7. As Firefox (& I think Safari too) does not support the ScreenWakeLock API are you using NoSleep.js? https://github.com/richtr/NoSleep.js This library implements a hack and plays a very tiny video in a loop too. This should even work on…
  8. ▲ 1
    NoSleep.js: Enable wake lock in any Android or iOS web browser
    story by richtr · 2015-04-21 · 0 comments