tor-browser

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

opaque-script-frame.html (443B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 </head>
      6 <body>
      7 <script>
      8 self.addEventListener('error', evt => {
      9  self.parent.postMessage({ type: 'ErrorEvent', msg: evt.message }, '*');
     10 });
     11 
     12 const el = document.createElement('script');
     13 const params = new URLSearchParams(self.location.search);
     14 el.src = params.get('script');
     15 el.addEventListener('load', evt => {
     16  runScript();
     17 });
     18 document.body.appendChild(el);
     19 </script>
     20 </body>
     21 </html>