Optimized Facebook enhancer with no freezing, better performance, localStorage settings, and full UI customization menu. Removes ads, reels, people suggestions, and more.
Dessa är versionerna av skriptet där koden uppdaterades. Visa alla versioner.
## 📦 **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
## 📜 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
## [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
## [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
## [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 removedNo performance loss. Mobile compatible.
## [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