Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anti Brain Rot - Chrome Extension

A Chrome extension that automatically closes YouTube videos and shorts based on customizable filter criteria — with a twist.

Features

  • 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

Installation

  1. Open Chrome and navigate to chrome://extensions/
  2. Enable "Developer mode" (toggle in top right)
  3. Click "Load unpacked"
  4. Select the AntiBrainrot folder
  5. The extension is now installed and active

Configuration

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 true to block all YouTube Shorts, false to allow them

How It Works

When the extension detects filtered content:

  1. Checks if the current page is a YouTube Short (blocked if blockShorts is true)
  2. Scans video titles and descriptions for blocked words from the filter list
  3. Pauses the video immediately
  4. Shows an interactive overlay with a random multiplication or division problem
  5. Prompts you to "solve to unlock the page"
  6. Regardless of whether you answer correctly or incorrectly, it closes the tab anyway after 2 seconds
  7. The twist: even if you get it right, it says "Just kidding... still closing!"

Files

  • manifest.json - Chrome extension configuration
  • filters.json - Filter criteria (blocklist)
  • content.js - Main content script that runs on YouTube pages
  • README.md - This file

Note

The manifest references icon16.png which you can add if you want a custom icon, or remove the icons section from manifest.json.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages