Scroll like Opera

Based on Linkify Plus. Turn plain text URLs into links.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
eight
今日安裝
0
安裝總數
882
評價
14 0 0
版本
2.1.1
建立日期
2014-12-23
更新日期
2021-12-20
尺寸
7.7 KB
相容性
相容於 Firefox 相容於 Chrome
授權條款
MIT
腳本執行於
所有網站

Scroll like Opera

A userscript to provide Opera(old) like scrolling behavior.

Features

  • Scroll horizontally when the cursor hover on horizontal scrollbar.
  • Scroll horizontally if there is only one horizontal scrollbar.
  • Smooth scrolling.

Test page

https://rawgit.com/eight04/scroll-like-opera/master/demo.html

Todos

  • Better behavior when scrolling to top/bottom?
    • Currently, if the inner element scrolled to edge, it will check outer element whether is scrollable.
    • How to guess which element we are going to scroll?
    • What does it mean when user want to scroll and unscrollable element?
  • Get wrong value if the page is zoomed.

Known bugs

  • Chrome doesn't fire wheel event when cursor hover on window scrollbar.

Changelog

  • 2.1.1 (Dec 20, 2021)

    • Fix: use non-passive wheel event.
  • 2.1.0 (Feb 17, 2015):

    • Add a small delay to change scrolled target when scrolling to bottom/top.
  • 2.0.4 (Jan 16, 2015):

    • Fix scrollable document.body bug.
  • 2.0.3 (Dec 29, 2014):

    • Reload config after configure.
  • 2.0.2 (Dec 29, 2014):

    • Update GM_config to 0.2.2.
  • 2.0.1 (Dec 29, 2014):

    • Use a different GM_config library.
  • 2.0.0 (Dec 24, 2014):

    • Stop detecting scrollbar and don't scroll overflow:hidden element anymore.
  • 1.0.4 (Dec 23, 2014):

    • Fix typo.
  • 1.0.3 (Dec 23, 2014):

    • Fix inline element.
  • 1.0.2 (Dec 23, 2014):

    • Fix menu name.
  • 1.0.1 (Dec 23, 2014):

    • Correct name.
  • 1.0.0 (Dec 23, 2014):

    • First release.
  • 0.1.0 (Dec 19, 2014):

    • Initial version.