您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disables smooth scrolling on ALL websites
当前为
- // ==UserScript==
- // @name RoughScroll
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Disables smooth scrolling on ALL websites
- // @author Hayden Schiff (oxguy3)
- // @match *://*/*
- // @grant none
- // ==/UserScript==
- /* jshint -W097 */
- 'use strict';
- /*
- HEY YOU! PRO-TIP:
- If you want to save some bandwidth by not downloading smooth scrolling scripts,
- add the following rules to the custom filters list on your favorite ad blocking
- browser extension:
- /jquery.nicescroll*.js
- /jquery.smoothscroll*.js
- /jquery.smooth-scroll*.js
- /jquery-smoothscroll*.js
- /jquery-smooth-scroll*.js
- /nicescroll*.js
- /smoothscroll*.js
- /smooth-scroll*.js
- /mousewheel-smooth-scroll
- /surbma-smooth-scroll
- /dexp-smoothscroll.js
- */
- // a million thanks to Arnavion for showing me this trick
- // 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);