feat: allow moving YouTube live chat below in theater mode (#3545) #3585
+251
−0
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.
Feature: Move Live Chat Below Theater Mode
🎯 Issue Summary
Implements #3545 - Add option to move live chat below the player in theater mode, allowing users to use theater mode while still having access to live chat.
🔍 Problem Statement
YouTube's theater mode hides the live chat sidebar, making it impossible to watch live streams in theater mode while following the chat. Users requested the ability to move live chat below the player, similar to how comments can be repositioned.
🛠️ Solution Overview
Core Implementation
ytd-watch-flexy[theater]attributeKey Features
📁 Files Changed
📝
js&css\web-accessible\www.youtube.com\appearance.jslivechatBelowTheater()function for main repositioning logiclivechatTheaterModeObserver()function for automatic theater mode detection📝
js&css\web-accessible\functions.jsvideoPageUpdate()for proper initialization📝
js&css\web-accessible\core.jslivechatandlivechat_below_theatersettings🧪
test-live-chat-below-theater.js(New)🔄 Technical Implementation
DOM Structure
ytd-live-chat-frame#chatytd-watch-flexy[theater]attribute#below(below player area)#secondary-inner(sidebar)Positioning Logic
Observer Pattern
✅ Verification
Automated Testing
Manual Testing Steps
Test Coverage
📊 Impact Assessment
Files Modified: 3 core files + 1 test file
Lines Added: ~150 lines
Breaking Changes: None
Performance: Minimal impact (single observer)
Compatibility: Works with existing live chat features
🎉 User Benefits
🔧 Configuration
Users can enable this feature through:
📝 Notes