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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
jjenkx
Denně instalací
0
Celkem instalací
3
Hodnocení
0 0 0
Verze
1.0
Vytvořeno
27. 11. 2025
Aktualizováno
27. 11. 2025
Size
19,0 KB
Licence
MIT
Spustit na

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.