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

Greasy fork 爱吃馍镜像

Reddit Snap Scroll

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Tác giả
Farid Ismailov
Cài đặt hàng ngày
0
Số lần cài đặt
3
Đánh giá
0 0 0
Phiên bản
2025.09.04.3
Đã tạo
04-09-2025
Đã cập nhật
04-09-2025
Kích thước
20 KB
Giấy phép
Personal
Áp dụng cho
  • 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