A Chrome extension that automatically closes YouTube videos and shorts based on customizable filter criteria — with a twist.
- Automatically detects and blocks YouTube videos containing specific words in titles or descriptions
- Blocks all YouTube Shorts
- Interactive math problem overlay that pauses the video
- The math problem is a trick — it closes the tab anyway regardless of your answer
- Customizable filter list via JSON configuration
- Works on both desktop and mobile YouTube
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
AntiBrainrotfolder - The extension is now installed and active
Edit filters.json to customize what gets blocked:
{
"blockedWords": [
"emma",
"jenny",
"ellie",
"aunty beth",
"toysplay"
],
"blockShorts": true
}- blockedWords: Array of words to check for in video titles and descriptions (case-insensitive)
- blockShorts: Set to
trueto block all YouTube Shorts,falseto allow them
When the extension detects filtered content:
- Checks if the current page is a YouTube Short (blocked if
blockShortsis true) - Scans video titles and descriptions for blocked words from the filter list
- Pauses the video immediately
- Shows an interactive overlay with a random multiplication or division problem
- Prompts you to "solve to unlock the page"
- Regardless of whether you answer correctly or incorrectly, it closes the tab anyway after 2 seconds
- The twist: even if you get it right, it says "Just kidding... still closing!"
manifest.json- Chrome extension configurationfilters.json- Filter criteria (blocklist)content.js- Main content script that runs on YouTube pagesREADME.md- This file
The manifest references icon16.png which you can add if you want a custom icon, or remove the icons section from manifest.json.