tor-browser

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

iframe_TAO_match_origin.html (459B)


      1 <body>
      2 <script>
      3 function dirname(path) {
      4    return path.replace(/\/[^\/]*$/, '/');
      5 }
      6 
      7 function request() {
      8  var dirName = dirname(location.href);
      9  var client = new XMLHttpRequest,
     10  // create a cross-origin request
     11    url = dirName.replace('://', '://www.') + 'TAOResponse.py?tao=match_origin';
     12    client.open("GET", url, false);
     13    client.send(null);
     14 }
     15 
     16 if(window.parent.setup_iframe) {
     17  window.parent.setup_iframe();
     18  request();
     19 }
     20 </script>
     21 </body>