🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/04 04:36:04
🔄 下次更新时间:2026/01/04 05:36:04
手动刷新缓存

Don't fuck with my scroll!!!

Whenever the user scrolls using the mouse wheel it will disable all methods to programmatically scroll for 500 ms (0.5 seconds). Basically preventing websites to implement custom scrolling behaviors like smooth scrolling.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

You will need to install an extension such as Tampermonkey to install this script.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

작성자
Jinpha
일일 설치 수
0
총 설치 수
280
평점
4 1 0
버전
1.1
생성일
2019-04-11
갱신일
2019-05-16
크기
4.56KB
라이선스
해당 없음
적용 사이트
모든 사이트

Why did I create this?

I've noticed that some websites have tried to implement their own smooth scrolling. However, they rarely work as intended and mostly just annoys the user as the scrolling experience is being changed.

This script has been made to block these annoyances and let the browser itself choose how to scroll.

How does it actually work?

This script is very simple. In the initialization of the script it registers all methods that can programmatically scroll the page. These includes: window.scrollTo, window.scrollBy, document.scrollingElement.scrollTop.

Whenever the scripts register that you've scrolled using your mouse wheel it will override these methods described above with a void function that does absolutely nothing. So if a page tried to scroll using these methods while they've been voided it would do nothing which is exactly what we need to prevent these custom behaviors.

After 1 second the voided methods will be restored to their original functionality. This means that if the page tried to scroll using those methods they would work again as expected. We're only interested in blocking the scrolling in the time frame of using the mouse wheel to prevent breaking important features.