Disable websites' smooth scroll feature?

Solution 1:

// source: http://stackoverflow.com/a/35611393/992504
document.getElementsByTagName("body")[0].addEventListener("wheel",function (event) {
  // exception for ACE Editor, JS text editor used by sites like GitHub
  if (event.target.classList.contains('ace_content')) {
    return;
  }
  event.stopPropagation();
}, true);

Solution 2:

Thanks ChoGGi!

I made a bookmarklet (drag this to your bookmarks and click it when you want to remove smoothscroll):

Disable SmoothScroll

If it doesn't work paste this code into a bookmark's URL field:

javascript:(function(){document.getElementsByTagName("body")[0].addEventListener("wheel",function (event) {if (event.target.classList.contains('ace_content')) {return;}event.stopPropagation();}, true);})();

Here is a website to test: https://hollandshielding.com/IP-Rating-Chart