tor-browser

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

index.html (762B)


      1 <!DOCTYPE html>
      2 <script>
      3 var width, url, width2, url2;
      4 function maybeReport() {
      5  if (width !== undefined && url !== undefined &&
      6      width2 !== undefined && url2 !== undefined) {
      7    window.parent.postMessage({status: "result",
      8                               width,
      9                               width2,
     10                               url,
     11                               url2}, "*");
     12  }
     13 }
     14 onload = function() {
     15  width = document.querySelector("img").width;
     16  width2 = document.querySelector("img").width;
     17  maybeReport();
     18 };
     19 navigator.serviceWorker.onmessage = function(event) {
     20  if (event.data.suffix == "2") {
     21    url2 = event.data.url;
     22  } else {
     23    url = event.data.url;
     24  }
     25  maybeReport();
     26 };
     27 </script>
     28 <img src="image.png">
     29 <img src="image2.png">