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
适用于

Facebook Anti-Refresh Userscript

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

  • 🚫 No more losing your place in the feed
  • 💯 Works with latest Facebook interface
  • 🌐 Supports multiple Facebook domains
  • ⚡ Lightweight and efficient

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

⚠️ Known Issue

To close Facebook posts, use ESC key or X button only. Clicking outside triggers redirect to top of feed. Script prevents refresh but not the redirect.

See screenshot below for details.