Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

    <body style="background: black;">
    <script>
      document.addEventListener('DOMContentLoaded', () => {
        document.addEventListener('click', () => {
          document.body.requestFullscreen();
        })
      })
    </script>
    </body>


view as:

I was inspired to do something similar, a bookmarklet:

    javascript:let b=document.body;b.bgColor="black";b.innerText="";b.requestFullscreen()

Interesting, I would have assumed the browser would have blocked the fullscreen request as it wasn't initiated by an action on the document itself.

Legal | privacy