Facebook Anti-Refresh

Prevents Facebook from auto-refreshing the news feed

Install this script?
Author's suggested script

You may also like Facebook Auto Unmute.

Install this script
Author
areen-c
Daily installs
0
Total installs
7
Ratings
0 0 0
Version
1.1
Created
2025-05-13
Updated
2025-05-13
Size
3.25 KB
License
MIT
Applies to

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.