Skip to content

feat: Add sticky navigation feature to prevent YouTube sidebar auto-hide#3079

Merged
ImprovedTube merged 5 commits intocode-charity:masterfrom
MahekG936:master
Aug 5, 2025
Merged

feat: Add sticky navigation feature to prevent YouTube sidebar auto-hide#3079
ImprovedTube merged 5 commits intocode-charity:masterfrom
MahekG936:master

Conversation

@MahekG936
Copy link

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.

@ImprovedTube ImprovedTube merged commit 5dbb0b7 into code-charity:master Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants