A Chrome extension that turns YouTube into a distraction-free study dashboard. Blocks Shorts/Trending/Recommendations, enforces autoplay OFF, and adds a clean Study Home.
- Shorts - No more short-form content rabbit holes
- Trending - Removes trending page and suggestions
- Music - Hides music recommendations
- Ads - Blocks all advertisements
- Recommendations - Removes sidebar and homepage suggestions (configurable)
- Comments - Hides comment sections (configurable)
- End screens - Blocks video suggestions at the end
- Autoplay - Continuously forced OFF while Study Mode is enabled
- Continue Watching - Your unfinished videos
- Your Playlists - Your saved study playlists
- Search - Full search functionality maintained
- Whitelisted Channels - Track resume-only for approved channels
- Minimal overlay replaces the default YouTube Home
- Sections: Continue Studying + Study Playlists
- No algorithmic recommendations or unrelated videos
- Fast, SPA-safe render and updates
- Clone or download this repository
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (top right)
- Click "Load unpacked"
- Select the
yt-study-modefolder - The extension is now installed!
- Click the extension icon in Chrome toolbar
- Toggle between Active/Inactive modes
- Reload YouTube page to apply changes
- Focus on your studies without distractions!
- Study Mode: ON/OFF pill
- Allowed Content: Subscribed (placeholder), Whitelisted, Playlists Only
- Quick Controls: Hide Comments, Hide Recommendations, Disable Autoplay
- Focus Tools: Study Time Today, Daily Limit, Start/Stop Focus Session
- Exam Mode: Hard lock — overlay says “YouTube is locked. Focus on your exam preparation.” and only allows whitelisted/playlist content
yt-study-mode/
├── manifest.json # Extension configuration
├── content.js # Blocking, Study Home, autoplay, exam lock, tracking
├── style.css # CSS-based blocking + Study Home styles
├── background.js # (Currently unused)
├── popup/
│ ├── popup.html # Extension popup UI
│ ├── popup.css # Popup styling
│ └── popup.js # Popup controls
├── logo.png # Extension icon
└── README.md # Documentation
- CSS Blocking - Hides elements using display:none
- JavaScript Blocking - Removes/overlays dynamically (SPA-safe)
- Autoplay Enforcement - Detects and toggles player/compact autoplay OFF
- URL Interception - Prevents navigation to Shorts/Trending
- Study Home Overlay - Injects minimal dashboard on Home routes
- Progress Tracking - Saves last watched video + timestamp for resume
- Study Time Tracking - Adds +1 min per active playback minute (eligible content)
- Allowed content: Save channel IDs to
whitelistChannelIds, and playlists tostudyPlaylists. - Playlists Only: When enabled, progress/tracking only counts for saved playlists.
- Disable Autoplay / Hide Comments / Hide Recommendations: Toggle in the popup;
content.jsenforces them.
Examples (DevTools Console while on YouTube):
chrome.storage.sync.set({ whitelistChannelIds: ['UCX6b17PVsYBQ0ip5gyeme-Q'] })
chrome.storage.sync.set({ studyPlaylists: [
{ title: 'Linear Algebra', playlistId: 'PLxyz...', url: 'https://www.youtube.com/playlist?list=PLxyz...' }
]})storage- Save user preferencestabs- Reload YouTube tabshost_permissions- Access YouTube pagesaction- Uses logo.png for toolbar icon
- Extension runs only on youtube.com
- Default Study Mode is ON (unless disabled in popup)
- Chrome Storage API used for persistence and tracking
- MutationObserver + timer loops ensure SPA content stays aligned
Extension not working?
- Make sure it's enabled in the popup
- Reload the YouTube page
- Check if extension is enabled in chrome://extensions/
Some content still showing?
- YouTube frequently updates their HTML structure
- The extension runs every 500ms to catch new elements
- Report any issues for updates
- One-click “Save current channel/playlist” buttons
- Subscription-based filtering implementation
- Keyword-level filtering
- Focus session timer + block non-study tabs
- Export/Import settings
Free to use and modify for personal and educational purposes.
Feel free to submit issues and enhancement requests!
Stay focused. Stay productive. Keep learning! 📚✨
