This script improves the guest browsing experience on the Facebook desktop site. It aims to remove common interruptions and add helpful features for users who are not logged in.
Demo: https://streamable.com/3gcp0v
Features
- Handles Login Prompts: Automatically closes or hides various login popups, overlays, and banners that appear during browsing.
- Prevents Page Deadlocks: To avoid the feed getting stuck, this script opens media links (like photos and videos) in a new tab. This bypasses the default media viewer, which often causes scrolling issues.
- Fixes Scroll Jumps: It remembers your scroll position when you open media and restores it when you close the viewer, so the page doesn't jump back to the top.
- Guest UI Cleanup: Hides UI elements that don't work for guests, such as "Like" and "Comment" buttons, providing a cleaner interface.
- Post Navigation: Adds several ways to move between posts:
- Keyboard: Use
J / K and arrow keys.
- Floating Buttons: On-screen up/down buttons.
- Mouse Wheel: Use the scroll wheel while holding a modifier key (like
Shift).
- Permalink Copier:
- Adds a button to each post for copying a clean link without tracking parameters.
- It can use a background tab to find the most accurate link for standard posts, or quickly extract one for media.
- You can choose from several URL formats in the settings.
- Integrated Search:
- Provides a search bar at the top of the page to search the current Facebook page or group using Google.
- Other Tools:
- Automatically unmutes videos (volume is adjustable).
- Adds numbers to posts in the feed.
Limitations & Recommended Usage
This script works by managing elements on the webpage; it cannot bypass Facebook's server-side restrictions.
After extensive browsing, Facebook may stop loading new content or redirect you to the login page. This is a server-side limitation that the script cannot prevent.
For the best experience, it is recommended to use this script in a temporary session:
- Firefox:
Private Browsing window.
- Chrome/Edge/Brave:
Incognito Mode window.
When the page stops working correctly, simply close the private/incognito tab and open a new one to start a fresh session.
How to Use
- Install the script. It is active by default when you browse Facebook while logged out.
- To change settings, open the
⚙️ Settings panel from your userscript manager's menu (e.g., Violentmonkey, Tampermonkey).
This script is designed for the DESKTOP SITE and for GUEST (LOGGED-OUT) MODE only.