A Firefox extension that limits YouTube Shorts viewing to 5 videos per day.
- 🎯 Tracks the number of YouTube Shorts watched
- 🚫 Blocks Shorts after reaching the limit (default: 5 videos)
- 📊 Beautiful interface with progress bar
- ⚙️ Configurable viewing limit
- 🔄 Automatic counter reset each day
- 🎛️ Ability to enable/disable the extension
You can install the stable version of the extension directly from the Mozilla Add-ons store:
Just click "Add to Firefox" and follow the instructions.
In the Releases section of the repository, you will find ready-made extension packages:
- For Firefox: A signed
.xpifile is available, which can be installed directly viaabout:addonsor simply by dragging it into the Firefox browser window. - For Chrome: Download the
.ziparchive, extract it, and load the folder as an unpacked extension viachrome://extensions(enable Developer mode).
🛡️ Starting from version 1.1.0, you can verify the GPG signature of the downloaded file if you get the extension from the Releases page.
The public key can be fetched from keyservers.
Fingerprint:BCE1 74C7 194B E6D9 29C8 7EF3 60A6 0302 26F5 BD7E
- Open Firefox
- Go to
about:debugging - Click "This Firefox"
- Click "Load Temporary Add-on"
- Select the
src/manifest.jsonfile from the extension folder
Make sure you have Deno installed before starting building.
To build the extension yourself, there are two scripts available:
build_firefox.sh— builds a package for Firefoxbuild_chrome.sh— builds a package for Chrome
You can run these scripts from the project root to generate the corresponding extension packages:
# For Firefox
./build_firefox.sh
# For Chrome
./build_chrome.sh- Clone the repository
- Make changes to files in
src/ - Install Deno
- Run
./build.shto create a new package - Test in Firefox using
about:debuggingor in Chromium based browsers usingchrome://extensions
- After installing the extension, go to YouTube
- Start watching Shorts
- The extension will automatically track views
- After 5 views (or the set limit), Shorts will be blocked
- Click the extension icon in the toolbar to manage settings
In the extension popup, you can:
- Change the daily Shorts viewing limit
- Reset the view counter
- Enable/disable the extension
- View current progress
manifest.json- extension manifestcontent.ts- main script for tracking Shortsbackground.ts- background scriptpopup.html- popup interfacepopup.ts- popup logicimages/- extension icons
- The extension tracks YouTube page URLs
- When Shorts are detected (URL contains
/shorts/or vertical video), tracking begins - After 10 seconds of viewing, the counter increases
- When the limit is reached, a blocking screen is shown
- The counter resets each day at midnight
- Uses WebExtension API
- Stores data in browser's local storage
- Tracks URL changes for SPA compatibility
- Automatically cleans old data (older than 7 days)
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (follow conventional commit naming)
- Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License
If you have questions or suggestions, create an issue in the project repository.