{"by":"bradleyjkemp","descendants":130,"id":31123522,"kids":[31126865,31128169,31126793,31127819,31128213,31130084,31124682,31126622,31128159,31125793,31124006,31127591,31132724,31124358,31124026,31128356,31126059,31127107,31132510,31127105,31128564,31128327,31127286,31127099,31124188,31129405,31130292,31135655,31129760,31126803,31128205,31127341],"score":252,"text":"There&#x27;s often times I want to prevent a computer&#x2F;laptop&#x2F;VM from sleeping and while, yes, there&#x27;s various Caffeine&#x2F;Amphetamine apps they&#x27;re often overkill.<p>Instead, this small (12Kb) page does the job and only needs a web browser.<p>It&#x27;s just a very simple usage of a web api normally used for things like video players: <a href=\"https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;API&#x2F;Screen_Wake_Lock_API\" rel=\"nofollow\">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;API&#x2F;Screen_Wake...</a>","time":1650643974,"title":"Show HN: Prevent your computer sleeping with just a webpage","type":"story","url":"https://nosleep.page/"}