Skip to content

LockedIn is a Browser extension that hides all distractions: Shorts, homepage feed, recommendations, explore, and more. It features a miniml Popup UI with simple toggles to create your perfect, distraction-free viewing environment.

License

Notifications You must be signed in to change notification settings

KartikHalkunde/LockedIn-YT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

66 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LockedIn Logo

Stay focused. Get things done.

Firefox Add-ons Edge Add-ons Chrome Web Store Version License


About

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.


Download


How It Works

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.


Important Links


Permissions

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.


Changelog

Version 1.0.92 (December 11, 2025)

  • 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

Version 1.0.91 (December 11, 2025)

-- 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

Version 1.0.90 (December 11, 2025)

  • 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

Version 1.0.82 (November 27, 2025)

  • 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

Version 1.0.75 (November 15, 2025)

  • 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

Version 1.0.7 (November 5, 2025)

  • 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

Version 1.0.6 (October 31, 2025)

  • 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)

Version 1.0.5 (October 29, 2025)

  • 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

Full Changelog


Tech Stack

Stack Dependencies Size

  • 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

License

MIT License - see LICENSE for details.


Contact & Support


Made with β˜• by Kartik Halkunde

If this helps you stay focused, consider ⭐ starring the repo!

About

LockedIn is a Browser extension that hides all distractions: Shorts, homepage feed, recommendations, explore, and more. It features a miniml Popup UI with simple toggles to create your perfect, distraction-free viewing environment.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published