Skip to content

Conversation

@amankumarconnect
Copy link
Contributor

Fixes #3517

Issue

The issue was that when the window width is greater than 1000px (likely in Default view rather than Theater mode), the YouTube player is contained within [player-container] instead of [player-full-bleed-container]. The extension's cinema mode was only bringing [player-full-bleed-container] to the front (z-index 10000), leaving [player-container] behind the black overlay (z-index 9999), resulting in a black screen.

Changes

I have updated [player.js] to target both [player-full-bleed-container] and [player-container] when toggling cinema mode. This ensures that the active player container is always brought above the overlay.

Files Modified:

[player.js]: Updated ImprovedTube.
playerCinemaModeButton, ImprovedTube.playerCinemaModeDisable, and [ImprovedTube.playerCinemaModeEnable] to handle both player container IDs.

Screenshot

image

@drc0369
Copy link

drc0369 commented Jan 2, 2026

This is still happening for me on Firefox...

@amankumarconnect
Copy link
Contributor Author

This is still happening for me on Firefox...

@drc0369 The PR is not merged yet. Only after it's merged, you will see the changes.
Or are you using my fork to load extension unpacked?

@ashleyconnor
Copy link
Contributor

Apologies for the regression. Too many permutations to test :(

@ImprovedTube ImprovedTube merged commit a02d01f into code-charity:master Jan 3, 2026
@ImprovedTube ImprovedTube removed the request for review from ashleyconnor January 3, 2026 17:31
@ImprovedTube
Copy link
Member

hello @amankumarconnect thank you!

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.

🐞cinema mode toggle leads t black screen

4 participants