tor-browser

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

lazyload-contents.html (421B)


      1 <!DOCTYPE html>
      2 <body>
      3  <p>This page is lazyloaded.</p>
      4  <script>
      5    let query_index = window.location.href.indexOf("?id=");
      6    let id = window.location.href.substr(query_index + 4);
      7    window.addEventListener("load", () => {
      8      let p = document.querySelector("p");
      9      let contents = p ? p.innerHTML : "null";
     10      window.parent.postMessage({"id": id, "contents": contents}, "*");
     11    });
     12  </script>
     13 </body>