🛡️ YT Comment Filter (Improved)
Clean up your YouTube comment section! Automatically hide spam, bot comments, repetitive garbage, and toxic content based on usernames, specific keywords, and regex patterns.

📖 Overview
This Userscript is a powerful tool designed to improve your YouTube viewing experience by filtering out unwanted comments. Unlike simple CSS hiders, this script uses advanced logic to detect spam even when it's disguised with special characters (Leet Speak).
It seamlessly integrates into the YouTube UI, adding a Toggle Button directly to the comments header, allowing you to quickly peek at hidden comments without disabling the script.
✨ Key Features
1. 🧠 Smart "Leet Speak" Detection
Spammers often write "S.L.0.T" instead of "SLOT" to bypass filters. This script automatically generates Regex patterns for your keywords.
- Input:
slot
- Matches:
slot, sl0t, s1ot, 5lot, s|ot, etc.
- No need to write complex Regex manually!
2. ⚡ High Performance
- Built with
MutationObserver to handle YouTube's dynamic loading (infinite scroll) efficiently.
- Uses
Debouncing to prevent lag during rapid scrolling.
- Lightweight and optimized for all modern browsers.
3. 🎛️ Native UI Integration
- Toggle Button: A neat "Eye" icon appears next to the comment count.
- Status ON: Hides spam. Shows count (e.g., "Hidden: 5").
- Status OFF: Shows all comments with a red border around the spam ones.
- Modern Settings Dialog: No need to edit the code! A beautiful, dark-mode compatible menu to add/remove blocked words.
4. 🌍 Global Spam Filter
- Option to filter out non-Latin characters (e.g., Cyrillic, Arabic, etc.) often used by global bot networks on English/Latin-based videos.
🚀 Installation
- Install a Userscript Manager:
- Install the Script:
- Click the Install button on this page.
- Refresh YouTube:
- Open any YouTube video and scroll down to the comments.
⚙️ How to Configure
You can customize the filter lists easily via the Tampermonkey menu:
- Click the Tampermonkey icon in your browser extension bar.
- Look for YT Comment Filter (Improved).
- Choose one of the options:
- ⚙ Set Blocked Usernames: Add names of bots or users you want to mute.
- 📝 Set Blocked Keywords: Add words like
promo, bet, check my channel, etc.
- 👁 Toggle Button Check: Force the toggle button to appear if it's missing.
Configuration Format
Simply separate words with a comma.
Example:
promo, 18+, free money, click here
📸 Screenshots
1. Toggle Button UI
A button to quickly hide/show spam comments.

2. Settings Dialog
A modern settings menu for adding users or keywords you want to block.

🛠️ Compatibility
- Browsers: Chrome, Firefox, Edge, Opera, Brave, Safari (via Userscript manager).
- Theme: Fully compatible with YouTube Dark Mode and Light Mode.
- Layout: Works with the new and old YouTube layouts (Polymer).
📝 Changelog
v5.2
- Improved UI responsiveness.
- Fixed bug where the toggle button disappeared on navigation.
- Updated default spam list.
Made with ❤️ for a cleaner YouTube experience.