tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

clipboard_read.html (504B)


      1 <html>
      2  <head>
      3    <meta charset="utf-8" />
      4    <title>Hello, world!</title>
      5    <meta name="viewport" content="initial-scale=1.0" />
      6  </head>
      7  <body style="height: 100%">
      8    <p>Hello, world!</p>
      9    <script>
     10      document.body.addEventListener("click", () => {
     11        navigator.clipboard
     12          .readText()
     13          .then(() => {
     14            window.alert("allow");
     15          })
     16          .catch(() => {
     17            window.alert("deny");
     18          });
     19      });
     20    </script>
     21  </body>
     22 </html>