Smart Context Scroll-to-Top (Advanced)

Adds a smart back-to-top button not only for the page, but for every scrollable container (modals, divs).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
rurzowiutka
今日安裝
0
安裝總數
1
評價
0 0 0
版本
2025.12.29.1.2
建立日期
2025-12-29
更新日期
2025-12-29
尺寸
6.4 KB
授權條款
MIT
腳本執行於
所有網站

🚀 Stop "Rowing" Upstream! The Ultimate Scroll Solution is Here



How many times have you scrolled through 200 products in a shop, reached the bottom, and realized
you need to change one single filter located at the very top?

Developers forget about it. UX designers ignore it.
And we are left scrolling manually like cavemen. 😤

I've tested dozens of "Scroll to Top" extensions. They all ended up in the trash.

Why are other scripts annoying?

  • They are "dumb": They only work on the main page. Open a modal? Scroll a popup? Good luck manually scrolling back up.
  • They are intrusive: Why do most scripts show the button 100% of the time? It blocks content and distracts you even when you are already at the top. Useless!
  • They are clunky: Instead of taking you to pixel 0, they often leave you "somewhere near the top".



🔥 The Solution: Smart Context Scroll-to-Top


This isn't just a button. It is an intelligent agent that lives in your browser.
It solves every issue mentioned above with surgical precision.

Key Features:

🧠 Contextual Intelligence (The Game Changer)
  • The script detects exactly w h a t you are scrolling.
  • Browsing a Facebook feed? The button works for the page.
  • Reading a long agreement inside a popup/modal?
  • The script "sees" it and attaches the button inside that specific window.

👻 Visible Only When Needed
  • Sitting at the top? The button is invisible.
  • Scroll down (default 300px)? BOOM! It appears discreetly in the corner.

🛡️ Smart Ignore System
  • Writing a long comment or email? Don't worry.
  • The script automatically detects text inputs and won't clutter your textboxes with unnecessary buttons.

🎨 100% Configurable

    Want a bigger button? Different offset?
    Everything is accessible right at the start of the code. No hacking required.


🔧 Configuration Snippet

You can easily customize the behavior by editing the top variables:

const SCROLL_THRESHOLD = 300;     // When to show
const BUTTON_SIZE = 40;           // Size in px
const IGNORE_TEXT_FIELDS = true;  // Smart ignore

✨ Install it once, and you won't be able to live without it.

Simple. Lightweight. Intelligent.