YT Comment Filter (Improved)

Automatically hide YouTube comments based on username, specific keywords, and spam text patterns. Optimized for performance.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Mochamad Adi
日安装量
2
总安装量
3
评分
0 0 0
版本
5.2
创建于
2025-11-30
更新于
2025-11-30
大小
20.8 KB
兼容性
与 Firefox 兼容 与 Chrome 兼容 与 Opera 兼容 与 Safari 兼容 与 Edge 兼容
许可证
MIT
适用于

🛡️ 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.

Version License

📖 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

  1. Install a Userscript Manager:
  2. Install the Script:
    • Click the Install button on this page.
  3. 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:

  1. Click the Tampermonkey icon in your browser extension bar.
  2. Look for YT Comment Filter (Improved).
  3. 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. Hidden Toggle Button

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


🛠️ 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.