Facebook Enhancer v3.11

Hide Reels, Stories, Suggestions, Marketplace, Events, Shortcuts. Pause/mute videos, unwrap links, remove ads. Smart settings menu. No layout breakage. Reels removal fixed (June 2025 version). Persistent UI toggle with logging option and structure-safe removal strategy.

These are versions of this script where the code was updated. Show all versions.

  • v3.11 18.06.2025.

    ### 🧾 **Changelog – Facebook Enhancer by Eliminater74**

    ---

    #### **v3.11 – June 2025**

    * 🔁 **Reels Blocking Reworked:**
    Replaced experimental logic with a more aggressive, structure+label-based method. Targets Reels blocks by label, carousel layout, and video count. *(Note: Reels removal is still subject to Facebook layout changes.)*

    * 🛠 **Sidebar Section Hiding Finalized:**
    Safe collapsing of Marketplace, Events, and Shortcuts.

    * Prevents layout breakage (no more blank screen issues)
    * Uses minimal traversal to hide only the necessary UI parts

    * 🐞 **Debug Mode Logging Enhanced:**
    Now clearly shows which Reels, Stories, and Sidebar elements were removed in the browser console when debug mode is active.

    ---

    #### **v3.10 – May 2025**

    * 🛠 **Rollback to Reliable Reels Logic:**
    Reverted Reels detection to the last known working method for improved stability.

    * ✅ **Safe Sidebar Toggle Fixes (Round 1):**
    Prevents Marketplace/Shortcuts/Event toggles from breaking layout by ensuring only the correct DOM segments are removed.

    ---

    #### **v3.9 – May 2025**

    * ✨ **Improved Reels Detection (v1):**
    Introduced new detection logic based on number of videos, carousel presence, and removal of accidental post matches.

    * ⚙️ **UI/UX Polish:**
    Enhanced floating menu appearance and added internal cleanup for CSS injection and settings recovery.

    ---

    #### **v3.8 – April 2025**

    * 🧹 **Script Cleanup + Refactoring:**
    Refined modularity of settings loader, UI creation, and observers. Improved performance with smaller selectors.

    * 🔄 **Added Persistent Draggable Settings Menu:**
    Easily control every feature in real-time. Changes persist using localStorage.

    * 🔧 **New Toggle Features Added:**

    * `toggleMarketplace`
    * `toggleEvents`
    * `toggleShortcuts`
    Added in response to user feedback about sidebar clutter.

    ---

    #### **v3.1 – Initial Release (Stable)**

    * 🚀 First stable release with:

    * Sponsored/Suggested removal
    * People You May Know hiding
    * Reels/Stories blocking
    * Autoplay & mute video controls
    * Link unwrapping
    * Auto-expand comments
    * Basic keyword filter
    * Custom CSS support
    * Floating gear icon + panel
    * Settings saved to localStorage

  • v3.1 10.06.2025.

    ## 📦 **Changelog – Facebook Enhancer**

    ### 🆕 **v3.1 – \[June 10, 2025]**

    **Major Rewrite & Stability Fixes**

    * ✅ **Complete script rewrite** for improved performance and reliability
    * ✅ Fixed **screen freezing** when expanding comments or stopping autoplay
    * ✅ New **mutation-based enhancements** (no more inefficient `setInterval`)
    * ✅ **Improved video handling** using `IntersectionObserver` (no hard pausing unless visible)
    * ✅ Fixed **"People You May Know"** removal for both sidebar and card-style widgets
    * ✅ New **settings panel rewrite** with proper `localStorage` saving/loading
    * ✅ **Custom CSS** now loads immediately and updates live
    * ✅ Enhanced **keyword post filtering** (case-insensitive, efficient)
    * ✅ Optionally force **"Most Recent" feed** view on page load
    * ✅ Improved **draggable toggle and settings panel**
    * ✅ **Dark mode toggle** adds `fb-dark-mode` class to ``
    * ✅ Cleaned up unused code and added error handling
    * 🔒 Ensured all changes are **privacy-safe and local-only**

    ---

    ### 🗑️ Removed

    * ❌ Old `setInterval`-based enhancer loop
    * ❌ Unreliable comment expander logic causing UI lockups

  • v2.8 06.06.2025.

    ## 📜 Changelog

    ### v2.8 – Feature Expansion & Power Tweaks (2025-06-06)

    * ✅ **Added keyword filtering** – hide posts by custom words (e.g., "kardashian", "tiktok", etc.)
    * ✅ **Added Reels blocker** – removes all Facebook Reels content and links
    * ✅ **Added theme presets** – includes `dark`, `minimal`, and `default` styles
    * ✅ **Text input fields for keyword filter and theme selector** in the settings menu
    * ✅ Live **custom CSS editor** remains for advanced users
    * 🧹 Improved video autoplay handling to prevent freezing
    * 🧲 Minor UI enhancements to menu layout and spacing

    ---

    ### v2.7 – Autoplay Freeze Fix (2025-06-05)

    * 🔧 Rewrote autoplay handler to avoid freezing videos
    * 🏷️ Marked processed videos to prevent re-handling
    * ✅ Added `.readyState` check before muting or pausing videos
    * 🧪 Debug logging for autoplay actions

    ---

    ### v2.6 – Custom CSS Support & UI Polish (2025-06-05)

    * ✍️ Added live-editable **custom CSS field** in the menu
    * 💾 Custom styles now auto-apply and persist across sessions
    * 🧲 Menu UI cleaned up with better spacing and consistent labels
    * 🧱 Refactored setting layout for better readability

    ---

    ### v2.5 – Smart Menu Overhaul (2025-06-04)

    * ⚙️ Added fully draggable **settings panel and gear toggle**
    * 💾 Added **Save/Load/Reset** configuration buttons
    * 🧠 Enhanced setting descriptions and clarity with readable labels
    * 📦 Settings persist via `localStorage`

    ---

    ### v2.4 – Initial Release (2025-06-03)

    * 🚀 Core features: block sponsored posts, auto-expand comments, unwrap links
    * 🎥 Stop autoplay, mute videos, remove popups and notifications
    * 💬 Force “Most Recent” feed, hide “People You May Know”
    * 🌙 Optional dark mode and classic blue theme

  • v2.4 01.06.2025.

    ## [2.4] – 2025-05-31

    ### Fixed
    - ❌ Video playback freezing on Reels and modals due to autoplay blocking — fixed!

    ### Improved
    - ✅ Autoplay blocker now ignores videos inside Reels, popups, or short-form sections
    - 🧠 Smarter targeting to only affect videos in the feed

    ### Other
    - Retains debug mode, video muting, save/load settings, and safe "People You May Know" logic

  • v2.3 01.06.2025.

    ## [2.3] – 2025-05-31
    ### Added
    - Safer and more specific "People You May Know" block removal
    - Debug mode toggle to test detection before deletion
    - Matches only containers with known header and friend buttons

    ### Fixed
    - No longer removes "Stories" or unrelated sections accidentally

    ### Other
    - Refactored detection logic and added extra text confidence checks

  • v2.2 01.06.2025.

    ## [2.2] – 2025-05-31

    ### Added
    - Improved hiding of "People You May Know" – now detects sidebar and widget versions
    - Fully detects and removes friend suggestion containers based on real DOM layout

    ### Improved
    - More aggressive widget targeting for dynamic layouts

    ### Fixed
    - Friend cards like those shown in the user's screenshot are now properly removed

    No performance loss. Mobile compatible.

  • v2.1 01.06.2025.

    ## [2.1] – 2025-05-31
    ### Added
    - Mute all videos toggle (`muteVideos`)
    - Save and load buttons for settings (JSON import/export)
    - Mobile layout compatibility (floating menu responsive to small screens)

    ### Improved
    - "People You May Know" detection more reliable
    - Video autoplay detection uses `IntersectionObserver` (pauses videos on scroll)

    ### UI
    - Menu is scrollable and responsive
    - Clear labeling, wider menu, proper toggle alignment

  • v2.0 31.05.2025.