tor-browser

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

hsts_headers_framed.html (581B)


      1 <!DOCTYPE html>
      2 <html>
      3 <body>
      4 <script>
      5  "use strict";
      6 
      7  let src = document.location.href.replace("hsts_headers_framed.html", "hsts_headers.sjs");
      8  if (document.location.search == "?third-party") {
      9    src = src.replace("example.com", "example.org");
     10  }
     11  let frame = document.createElement("iframe");
     12  frame.setAttribute("src", src);
     13  frame.onload = () => {
     14    let done = document.createElement("h1");
     15    done.textContent = "done";
     16    done.setAttribute("id", "done");
     17    document.body.appendChild(done);
     18  };
     19  document.body.appendChild(frame);
     20 </script>
     21 </body>
     22 </html>