Facebook Anti-Refresh

Prevents Facebook from auto-refreshing the news feed

当前为 2025-05-13 提交的版本,查看 最新版本

作者
areen-c
评分
0 0 0
版本
1.1
创建于
2025-05-13
更新于
2025-05-13
大小
3.2 KB
许可证
MIT
适用于

This userscript prevents Facebook from auto-refreshing your feed when you switch tabs. It keeps your place in the timeline instead of that annoying refresh that makes you lose everything you were reading.

📋 Features

  • Prevents tab switching detection
  • Blocks auto-refresh after inactivity
  • Works silently in background
  • Supports multiple Facebook domains

💻 Installation

  1. Install Tampermonkey or Violentmonkey
  2. Click Install on this page
  3. Script runs automatically on Facebook

⚙️ How It Works

  • Overrides Page Visibility API
  • Intercepts refresh network requests
  • Blocks visibility events
  • Tracks user activity

  • 🚫 No more losing your place in the feed

  • 💯 Works with latest Facebook interface

  • 🌐 Supports multiple Facebook domains

  • ⚡ Lightweight and efficient

⚠️ Known bug: To close Facebook posts, use ESC key or X button only. Clicking outside the post area triggers a redirect to the top of news feed. This anti-refresh userscript prevents the refresh but not the redirect behavior.