tor-browser

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

vertical-scroll-wheel-block.html (392B)


      1 <!DOCTYPE html>
      2 <style>
      3  body, html {
      4    height: 100%;
      5    width: 100%;
      6    overflow: hidden;
      7  }
      8 </style>
      9 <body>
     10  <p>This page blocks all 'mouse-wheel'.</p>
     11 <script>
     12  function defaultScroll() {
     13    window.scrollTo(0, 0);
     14  }
     15 
     16  document.body.addEventListener(
     17      "wheel",
     18      (e) => { e.preventDefault(); defaultScroll(); }, {passive: false});
     19 
     20  defaultScroll();
     21 </script>
     22 </body>