tor-browser

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

change_child.html (443B)


      1 <body>
      2    Child.
      3    <iframe id="grandchild" src="change_grandchild.html"></iframe>
      4 </body>
      5 <script>
      6    var timer = window.setInterval(poll, 100);
      7    function poll() {
      8        if (document.body.getAttribute("data-contains-grandchild")) {
      9            var grandchild = document.getElementById("grandchild");
     10            window.frameElement.parentNode.appendChild(grandchild);
     11            window.clearTimeout(timer);
     12        }
     13    }
     14 </script>