Scroll page on double tap (mobile)

This userscript is designed for mobile browsers, and scrolls page on double tap. Top half of the screen scrolls up, and bottom half scrolls down. Double tap and move finger enables fast scrolling mode. When page is already scrolling, single tap will scroll it further.

当前为 2024-11-04 提交的版本,查看 最新版本

作者
emvaized
评分
0 0 0
版本
1.0.2
创建于
2024-10-30
更新于
2024-11-04
大小
10.0 KB
许可证
MIT
适用于
所有网站

This userscript is designed for mobile browsers, and scrolls page on double tap. Top half of the screen scrolls up, and bottom half scrolls down. Single taps are ignored for a specified timeout while script waits for a second tap, and then get dispatched programmatically.

Default value is to scroll page by 80% of the screen width on each double tap. It can be changed by modifying the amountToScroll variable (default value: 0.8)

Current bugs:
  • Some elements on page, which are designed to react to JavaScript events to handle taps, may not respond to the single taps anymore, as they are created programmatically from the script. I will think about how to fix it