5 ms·
<body style="background: black;"> <script> document.addEventListener('click', () => document.body.requestFullscreen()) </script> </body>
by omgitsabird 5y ago
<body style="background: black;">
<script>
document.addEventListener('click', () => document.body.requestFullscreen())
</script>
</body>
- djrockstar1 5y agoI was inspired to do something similar, a bookmarklet: javascript:let b=document.body;b.bgColor="black";b.innerText="";b.requestFullscreen()
- omgitsabird 5y agoInteresting, I would have assumed the browser would have blocked the fullscreen request as it wasn't initiated by an action on the document itself.