tor-browser

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

1700237.html (734B)


      1 <style>
      2 :not(cursor) {
      3  column-count: 1;
      4  user-select: none;
      5 }
      6 </style>
      7 <script>
      8 document.addEventListener("DOMContentLoaded", () => {
      9  window.getSelection().modify("move", "backward", "line")
     10  const interval = setInterval(() => {
     11    const m = new MutationObserver(() => {
     12      let x = document.getSelection().getRangeAt(0)
     13      a.appendChild(document.createElement("optgroup"))
     14      try {
     15        x.comparePoint(document.activeElement, 1)
     16      } catch (error) {
     17        clearInterval(interval)
     18        return
     19      }
     20 
     21    })
     22    m.observe(b, {attributes: true})
     23    b.setAttribute("x", "false")
     24  }, 100)
     25 })
     26 </script>
     27 <hr contenteditable="true">
     28 <shadow id="a">
     29 <select autofocus="autofocus">a</select>
     30 <div id="b">a</div>