tor-browser

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

1375131.html (972B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <script type="application/javascript">
      5      document.designMode = 'on';
      6 
      7      let div = document.createElement('div');
      8      let p = document.createElement('p');
      9      document.documentElement.appendChild(div);
     10      document.documentElement.appendChild(
     11        document.createElement('body'));
     12      document.documentElement.appendChild(p);
     13      document.execCommand('insertimage', false, 'http://localhost/');
     14      document.execCommand('insertparagraph', false, null);
     15 
     16      document.elementFromPoint(0, 0);
     17 
     18      let selection = window.getSelection();
     19      selection.modify('extend', 'forward', 'character');
     20 
     21      let range = document.createRange();
     22      range.selectNode(p);
     23      selection.addRange(range);
     24      range.setStart(div, 0);
     25 
     26      range = document.createRange();
     27      range.selectNode(p);
     28      selection.addRange(range);
     29 
     30      document.execCommand('delete', false, null);
     31    </script>
     32  </head>
     33 </html>