tor-browser

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

blank_page_prefetch.html (684B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 
      4 <head>
      5  <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
      6  <title>Page to be Prefetched</title>
      7  <script src="/common/dispatcher/dispatcher.js"></script>
      8 </head>
      9 
     10 <body>
     11  <script>
     12    const pageshowPromise = new Promise(resolve => {
     13      window.addEventListener('pageshow', resolve, { once: true });
     14    });
     15 
     16    async function getTransferSize() {
     17      await pageshowPromise;
     18      return window.performance.getEntriesByType('navigation')[0].transferSize;
     19    }
     20    const params = new URLSearchParams(window.location.search);
     21    const uuid = params.get("uuid");
     22    const executor = new Executor(uuid);
     23  </script>
     24 
     25 </body>
     26 
     27 </html>