🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Reddit Snap Scroll

Keyboard navigation (W/S), highlight, open (E), hide previous post

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
Farid Ismailov
Instalações hoje
0
Total de instalações
3
Avaliações
0 0 0
Versão
2025.09.04.3
Criado
04/09/2025
Atualizado
04/09/2025
Tamanho
17,5 KB
Licença
Personal
Aplicável a
  • Script name: reddit-snap-scroll.user.js
  • Scope: Enhances browsing on Reddit with keyboard navigation, focus highlight, and optional post hiding.
  • Key features:
    • Keyboard navigation: W = previous post, S = next post
    • Open post: E (also works on RU layout: У) opens the focused post in a background tab
    • Carousel control: A = previous slide, D = next slide (where applicable)
    • Highlight: The focused article is visually outlined
    • Hide previous on S: When moving down, the previously focused post is hidden
  • How hiding works:
    • Primary: calls Reddit’s GraphQL endpoint (/svc/shreddit/graphql) with the existing csrf_token cookie and postId (t3_*) extracted from the DOM
    • Fallback: opens the post overflow menu and clicks “Hide” (handles Shadow DOM and localized labels)
  • Installation:
    • Install Tampermonkey
    • Add the script reddit-snap-scroll.user.js to Tampermonkey and enable it
    • Open Reddit and use W/S to navigate
  • Configuration (inside script):
    • HIDE_PREVIOUS_ON_NEXT: hide the previously focused post on S (enabled)
    • AUTO_HIDE_ENABLED: auto-hide based on scrolling (disabled by default)
    • You can adjust highlight style and center offset if needed
  • Compatibility:
    • Designed for the new Reddit UI (shreddit-* components)
    • Requires being logged in for hiding to work (uses your existing cookies)
  • Privacy and safety:
    • Uses only your browser session and Reddit’s own endpoints
    • No data is sent to third parties; no storage beyond in-memory flags
  • Troubleshooting:
    • Ensure you are on new Reddit, logged in, and have a csrf_token cookie
    • If “Hide” text is localized, the script already matches common variants; report unusual labels to refine
    • If nothing hides on S, check the Tampermonkey console for errors and refresh the page