feat: Add sticky navigation feature to prevent YouTube sidebar auto-hide#3079
Merged
ImprovedTube merged 5 commits intocode-charity:masterfrom Aug 5, 2025
Merged
feat: Add sticky navigation feature to prevent YouTube sidebar auto-hide#3079ImprovedTube merged 5 commits intocode-charity:masterfrom
ImprovedTube merged 5 commits intocode-charity:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented a new feature that allows users to disable YouTube's auto-hiding left navigation panel, keeping it visible at all times like YouTube's UI before recent updates.
Workflow:
User enables setting in extension popup → Settings → Appearance → Sidebar → "Sticky Navigation" toggle
Extension injects CSS to override YouTube's auto-hide styles
JavaScript applies DOM manipulation to force navigation visibility
MutationObserver monitors for YouTube's attempts to hide navigation and re-applies styles
Feature persists across page loads and navigation events
Files Modified:
sidebar.js - Core feature logic
sidebar.css - Style overrides
init.js - Integration
appearance.js - UI setting
_locales/*.json - Translations (EN/ES/FR/DE)
sticky-navigation.test.js - Unit tests.
Result: When enabled, YouTube's left navigation stays visible and doesn't auto-hide on scroll/interaction.