tor-browser

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

navigate.sub.html (680B)


      1 <!DOCTYPE HTML>
      2 <html lang="en">
      3  <head>
      4    <meta charset="UTF-8" />
      5      <title>This page just redirects back to same-origin!</title>
      6  </head>
      7  <body>
      8    <h1>Redirect me away!</h1>
      9    <script>
     10 
     11    window.addEventListener("message", async (e) => {
     12      switch (e.data.dest) {
     13        case "same":
     14          window.location.replace("http://{{hosts[][]}}:{{ports[http][0]}}/fullscreen/api/resources/report-fullscreen-enabled.html")
     15          break;
     16        case "cross":
     17          window.location.replace("http://{{hosts[alt][]}}:{{ports[http][0]}}/fullscreen/api/resources/report-fullscreen-enabled.html")
     18          break;
     19      }
     20    });
     21 
     22    </script>
     23  </body>
     24 </html>