Skip to content

Pranay0083/YouTube-shorts-blocker-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Shorts Blocker 🚫▶

A lightweight Chrome/Edge browser extension (Manifest V3) that comprehensively removes YouTube Shorts from your browsing experience.

Features

  • 🚫 Hides Shorts shelf from the YouTube home feed and subscriptions
  • 📌 Removes Shorts tab from the left sidebar
  • 🔍 Removes Shorts from search results and channel pages
  • ↩️ Redirects /shorts/ URLs back to YouTube homepage
  • 🔘 Enable/Disable toggle via the popup — no need to reinstall

Installation (Chrome / Edge)

  1. Download or clone this repository
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable Developer Mode (toggle in top-right)
  4. Click Load unpacked
  5. Select the YouTube-shorts-blocker-extension folder
  6. The extension icon will appear in your toolbar ✅

How It Works

Feature Method
Hide Shorts UI elements CSS injection + MutationObserver content script
Block /shorts/ URLs declarativeNetRequest redirect rule
Enable/Disable toggle chrome.storage.local + dynamic rule update

File Structure

YouTube-shorts-blocker-extension/
├── manifest.json          # Extension manifest (MV3)
├── background.js          # Service worker — manages redirect rules
├── content.js             # Content script — hides Shorts DOM elements
├── rules.json             # Static redirect rule for /shorts/ URLs
├── popup/
│   ├── popup.html         # Toggle UI
│   ├── popup.css          # Dark-themed styles
│   └── popup.js           # Toggle logic
└── icons/
    ├── icon16.png
    ├── icon48.png
    └── icon128.png

Privacy

This extension does not collect, transmit, or store any personal data. It only reads YouTube page structure locally in your browser.

License

MIT

About

A lightweight Chrome/Edge browser extension that comprehensively removes YouTube Shorts from your browsing experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors