YouTube Filter Titles by Regex. Block Users by list or regex (Hides videos)

Blocks channels, title regex, channel regex. Hides videos that match list or regex

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
jjenkx
1日のインストール数
0
累計インストール数
3
評価
0 0 0
バージョン
1.0
作成日
2025/11/27
更新日
2025/11/27
大きさ
19KB
ライセンス
MIT
対象サイト

YouTube Filter Guide

YouTube Filter

Short Description and Quick Use Guide

What the Script Does

  • Hides videos by channel name, channel regex, or title regex.
  • Removes videos cleanly with no layout gaps by hiding the correct ytd-rich-item-renderer node.
  • Adds inline Block/Unblock buttons next to channel names.
  • Injects a top-right UI with:
    • Filter ON/OFF toggle
    • Rules panel for editing block lists and regex patterns
  • Stores all settings persistently using userscript storage.
  • Includes a scroll stabilizer to prevent the YouTube grid from jumping when scrolling fast.

How to Use

1. Toggle Filtering

Use the Filter: ON/OFF button in the top-right YouTube header.

  • ON hides matched videos.
  • OFF shows matched videos highlighted in yellow for debugging.

2. Edit Filtering Rules

Click Rules to open the settings panel. It contains:

  • Blocked Channels (newline separated channel names)
  • Channel Regex (one regex per line)
  • Title Regex (one regex per line)

Edit the lists and press Save. The page is immediately re-filtered.

3. Block Channels Inline

Next to every channel name, a small button appears:

  • [Block] adds the channel to the block list.
  • [Unblock] removes the channel from the block list.

No need to open the Rules panel for quick channel blocking.

How Filtering Works

For each video tile, the script:

  • Extracts the channel name.
  • Extracts all visible text from the tile.
  • Checks the channel name against:
    • The exact Blocked Channels list.
    • All Channel Regex patterns.
  • Checks the tile text against all Title Regex patterns.
  • Hides or highlights the tile based on whether filtering is ON or OFF.
  • Automatically processes newly loaded tiles during infinite scrolling.

Tips

  • Use exact channel names for the most common unwanted channels.
  • Use regex for patterns like certain keywords or groups of channels.
  • If something disappears unexpectedly, turn the filter OFF to see which tiles are highlighted and adjust your rules.
  • Keep regex patterns specific to avoid accidentally matching too many videos.