Scroll page on double tap

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.

Від 30.10.2024. Дивіться остання версія.

Автор
emvaized
Рейтинги
0 0 0
Версія
1.0.0
Створено
30.10.2024
Оновлено
30.10.2024
Size
3,4 кБ
Ліцензія
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)