This Chrome extension allows you to block YouTube Shorts during specified time periods. You can set up either one-time blocks or daily recurring blocks.
- One-time blocking: Block Shorts for a specific duration (minutes, hours, or days)
- Daily blocking: Block Shorts during specific hours of the day (e.g., 10:00 AM to 6:00 PM)
- Easy to use popup interface
- Real-time status updates
- Automatic removal of expired blocks
- Download or clone this repository
- Open Chrome and go to
chrome://extensions/
- Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the directory containing these files
- Click the extension icon in your Chrome toolbar
- Choose between "One-time Block" or "Daily Block"
- For one-time blocks:
- Enter the duration
- Select the time unit (minutes, hours, or days)
- For daily blocks:
- Set the start time
- Set the end time
- Click "Set Block" to activate the blocking
- Use "Remove Block" to deactivate the blocking at any time
The extension works by hiding YouTube Shorts elements on the page when the block is active. It uses a MutationObserver to ensure that new Shorts are also hidden as they are loaded.