LockedIn is an open-source browser extension that helps you focus on YouTube by removing distracting elements.
Compatible with: Firefox, Microsoft Edge, and Chromium-based browsers
Features:
- Hide Homepage Feed with motivational memes
- Smart Video Sidebar Controls:
- Hide Recommended Videos while keeping playlists visible
- Separate toggle for playlists visibility
- Block YouTube Shorts (separate controls for homepage & search)
- Hide Comments & Live Chat
- Hide Search Recommendations, Subscriptions & "More From YouTube"
- Disable Autoplay
- Instant element hiding with zero delays
- New organized UI with 4 logical groups
- Power button to quickly toggle entire extension
- "Take a Break" mode that temporarily disables the extension, flashes a warning when time is up, and auto-redirects you back to the homepage
- Stats tracking for time saved and content blocked
Privacy: Zero data collection. No external network requests. All processing happens locally in your browser.
- Firefox: Get it on Firefox Add-ons
- Edge: Get it on Edge Add-ons
- Chrome: Coming soon to Chrome Web Store
Content Script (content.js)
Runs on YouTube pages and handles element hiding using MutationObserver to detect dynamic content.
Popup Interface (popup/)
Simple toggle switches for each feature. Settings are saved instantly and synced across your devices.
- π Building from Source
- π€ Contributing Guide
- π Privacy Policy
- π Changelog
- π Report Issues
- π¬ Discussions
- π Website
| Permission | Why It's Needed |
|---|---|
storage |
Saves your preferences across browser sessions |
*://www.youtube.com/* |
Allows the extension to modify YouTube pages |
No tracking. No data collection. No external servers.
- Popup HTML Fixes: Sponsor and Feedback texts now render translated HTML links instead of showing raw markup
- Localization Robustness: Further hardening of section detection across languages (Explore/More from YouTube/Subs) carried forward
- Transcript Reliability: Transcript/engagement panels continue to auto-surface via the global observer
-- Expanded Language Coverage: Explore/Trending/More from YouTube/Subscribers detection now uses broader localized titles plus URL fallbacks to work across all YouTube languages -- Transcript Robustness: Added global observer to surface transcripts/engagement panels immediately after they load in any language and keep the sidebar visible for them -- Bug Fixes: Prevented βYouβ section from being hidden by More from YouTube toggle and hardened sidebar section matching
- Multi-Language Popup Support: Extension popup now supports 9+ languages (English, German, French, Spanish, Italian, Arabic, Turkish, Korean, Chinese)
- Automatic Theme Detection: Popup automatically switches between light/dark mode based on browser theme
- Hide Subscriptions Toggle: New toggle to hide the Subscriptions section from YouTube sidebar
- Language-Independent Detection: Multi-layered detection system for Explore/Trending/MoreFromYT toggles
- URL-Based Primary Detection: Works across all languages using URL patterns as primary identifier
- Confidence Scoring System: Combines URL, text (9+ languages), and structural position detection
- Dynamic Sidebar Monitoring: MutationObserver continuously applies hiding rules when sidebar updates
- Firefox Compliance: Removed service_worker field and all innerHTML usage for Mozilla security requirements
- Menu Tab: New menu interface with enhanced navigation and controls
- Light Mode Theme: Optional light theme for better visibility
- Take a Break Feature: Background alarm-based timer with auto-redirect and flash notifications
- Instant CSS Hiding: Pre-render hiding eliminates distraction flicker
- Context-Aware Toggles: Parent/child toggles appear only when relevant
- Popup Refinements: Improved layout spacing and clearer section dividers
- Livestream Fix: Fixed sidebar recommendations not hiding on YouTube livestream pages
- UI Layer Fix: Improved meme overlay z-index to prevent covering search suggestions
- Toggle Independence: Fixed Shorts toggle cross-interference between homepage and search
- Enhanced Detection: Better livestream video renderer detection (ytd-compact-autoplay-renderer)
- Stability: Strengthened sidebar hiding logic and improved page-type detection
- Smart Sidebar: Improved video page sidebar controls
- New toggle to show/hide playlists separately
- Refined recommended videos hiding to preserve playlists
- Better user control over sidebar content
- UI Enhancements: Optimized popup interface dimensions
- Technical: Updated internal version references
- UI Overhaul: Complete popup redesign with 4 logical groups and thread-line styling
- New Features: Added hide comments, search recommendations, and "More From YouTube" filters
- Split Controls: Separate toggles for homepage and search Shorts hiding
- Motivational Memes: Display random meme when homepage feed is hidden
- Footer Updates: GitHub and Support links with auto-version display
- Bug Fixes: Fixed homepage feed hiding and search recommendations filtering
- Optimization: Compressed meme images (1.7MB β 188KB total extension size)
- Cross-Browser Support: Now compatible with Firefox, Edge, and Chrome
- Edge Add-ons: Available on Microsoft Edge Add-ons store
- Multi-Platform: Single codebase works across all browsers
- Manifest V3 - Latest extension standard
- Vanilla JavaScript - No frameworks or libraries
- No build tools - Code you see is what runs in the browser
- MutationObserver API - Dynamic content detection
MIT License - see LICENSE for details.
- Bug Reports: GitHub Issues
- Feature Requests: GitHub Discussions
- Email: kartikhalkunde26@gmail.com
Made with β by Kartik Halkunde
If this helps you stay focused, consider β starring the repo!