A browser extension that automatically removes YouTube Shorts elements (ytm-shorts-lockup-view-model-v2) from YouTube pages.
- Automatically removes YouTube Shorts elements from all YouTube pages
- Continuously monitors for dynamically loaded content
- Works on both desktop and mobile versions of YouTube
- Lightweight and efficient
- Open your browser and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right corner
- Click "Load unpacked"
- Select the folder containing this extension
- The extension is now installed and active!
- Open Firefox and navigate to
about:debugging#/runtime/this-firefox - Click "Load Temporary Add-on"
- Navigate to the extension folder and select the
manifest.jsonfile - The extension is now installed and active!
The extension uses a content script that:
- Runs on all YouTube pages (
*.youtube.com) - Searches for elements with the tag
ytm-shorts-lockup-view-model-v2and elements with theis-shortsattribute - Removes these elements from the page
- Monitors for new elements being added dynamically using MutationObserver
- Runs a periodic check every second as a fallback
manifest.json- Extension configuration filecontent.js- Main content script that removes Shorts elementsREADME.md- This file
If you'd like to add custom icons for the extension:
- Create PNG images named
icon16.png,icon48.png, andicon128.png(16x16, 48x48, and 128x128 pixels) - Place them in the extension folder
- Add this to the
manifest.jsonfile after thecontent_scriptssection:
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
}- The extension requires no special permissions
- It only runs on YouTube domains
- You can view console logs in the browser's Developer Tools to see when elements are removed
If the extension isn't working:
- Make sure it's enabled in your browser's extension settings
- Try refreshing the YouTube page
- Check the browser console for any error messages
- Verify you're on a YouTube page (the extension only works on
*.youtube.com)
This extension runs entirely locally in your browser and does not collect, store, or transmit any data.