Greasy Fork is available in English.

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).

Você precisará instalar uma extensão como Tampermonkey, Greasemonkey ou Violentmonkey para instalar este script.

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

Você precisará instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Você precisará instalar uma extensão como Tampermonkey ou Userscripts para instalar este script.

Você precisará instalar uma extensão como o Tampermonkey para instalar este script.

Você precisará instalar um gerenciador de scripts de usuário para instalar este script.

(Eu já tenho um gerenciador de scripts de usuário, me deixe instalá-lo!)

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

(Eu já possuo um gerenciador de estilos de usuário, me deixar fazer a instalação!)

Autor
rurzowiutka
Instalações hoje
0
Total de instalações
1
Avaliações
0 0 0
Versão
2025.12.29.1.2
Criado
29/12/2025
Atualizado
29/12/2025
Tamanho
6,44 KB
Licença
MIT
Aplicável a
Todos os sites

🚀 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.