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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

نووسەر
jjenkx
Daily installs
0
Total installs
3
Ratings
0 0 0
وەشان
1.0
Created
2025-11-27
Updated
2025-11-27
Size
19 KB
مۆڵەت
MIT
Applies to

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.