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

Você precisará instalar uma extensão como Tampermonkey, Greasemonkey ou Violentmonkey para instalar este script.

Você precisará instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Você precisará instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Você precisará instalar uma extensão como Tampermonkey ou Userscripts para instalar este script.

Você precisará instalar uma extensão como o Tampermonkey para instalar este script.

Você precisará instalar um gerenciador de scripts de usuário para instalar este script.

(Eu já tenho um gerenciador de scripts de usuário, me deixe instalá-lo!)

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

(Eu já possuo um gerenciador de estilos de usuário, me deixar fazer a instalação!)

Autor
jjenkx
Instalações hoje
0
Total de instalações
3
Avaliações
0 0 0
Versão
1.0
Criado
27/11/2025
Atualizado
27/11/2025
Tamanho
19 KB
Licença
MIT
Aplicável a

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.