Better YouTube Theater Mode

Improves YouTube's theater mode with a Twitch.tv-like design, enhancing video and chat layouts while maintaining performance and compatibility. Also adds an optional, customized floating chat for fullscreen mode, seamlessly integrated with YouTube's design.

Αυτές είναι εκδόσεις αυτού του κώδικα όπου ο κώδικας έχει ενημερωθεί. Προβολή όλων των εκδόσεων.

  • v2.1.5 27/07/2025

    Fixed incorrect chat styling when in normal viewer mode.

  • v2.1.4 24/07/2025

    Fixed chat and youtube layout breaking when toggling fullscreen mode.
    Fixed YouTube layout getting stuck when swtiching between videos.

  • v2.1.3 24/07/2025

    ...

  • v2.1.2 24/07/2025

    Fixed chat breaking when switching into a video without chat while still having the video player in theater mode. Oops.

  • v2.1.1 24/07/2025

    Fixed menu bugs.
    Fixed a few bugs related to the new chat collapse feature.

  • v2.1.0 23/07/2025

    Added a custom chat collapse feature that collaspes the chat sideways instead of downward to improve UX in theater mode. Essentially cloning the Twitch version.

  • v2.0.0 26/06/2025

    This version is a major rewrite as the previous structure is getting pretty annoying to maintain.

    Fixed compatibility issue that happened with older GM versions under specific conditions.
    Fixed customized chat width being persisted incorrectly if floating chat is not used.
    Improved the performance of floating chat resize and dragging.

  • v1.12.8 08/05/2025

    Rollbacked JS to es11 for wider compatibility.

  • v1.12.7 03/05/2025

    Fixed an issue that caused the chat to block clicks if Floating Chat is enabled, even if the chat is collapsed and not visible.
    Fixed floating not being styled correctly if a new video with a different chat availability loads without leaving fullscreen mode.
    Fixed and issue that caused the chat to sometimes clip behind the headmast.
    Styled the float chat drag bar cursor to be move instead of default.

  • v1.12.6 27/04/2025

    Fixed version warning. The shown flag was not being loaded from storage.

  • v1.12.5 27/04/2025

    Changed script to no longer run in iFrames. The YouTube minions seem to have finally realized that they were unnecessarily stacking border styles on their chat elements. My fix that previously ran in the chat iFrame is no longer needed.

  • v1.12.4 26/04/2025

    Changed Tampermonkey verion warning to once per lifetime. (was once per update)

  • v1.12.3.1 25/04/2025

    Specified run-at metadata to be document-start.

  • v1.12.3 25/04/2025

    Fixed headmast width issue on pages without chat.

  • v1.12.2 24/04/2025

    Improved theater mode chat width scaling logic.
    Fixed youtube secondary column being unintentionally scaled with the chat width.
    Fixed youtube shorts thumbnails being unintentionally scaled with the chat width.
    Fixed a few minor style issues that would occur if the chat style has been toggle on then off.

  • v1.12.1 23/04/2025

    Fixed chat border fix style were not being properly applied.
    Fixed an issue that caused chat to be positioned incorrectly when switching into fullscreen mode.
    Fixed theather mode chat width to be occasionally calculated incorrectly when resizing browser window.

  • v1.12 19/04/2025

    Adds the ability for the chat width to be adjusted in theater mode. The current max is set to be 1/3 screen width; The minimum is set to 300px, reflecting YouTube's chat minimum. The limit could be changed in the future but I do not see the need for that.

    There is currently a low impact bug with how floating chat is positioned when switching in and out fullscreen mode. This will be fixed in a future patch.

  • v1.11.6 16/04/2025

    Minor update to descriptions. No code change.

  • v1.11.6 14/04/2025

    Fix chat bounding when switching between difference resolution screens.

  • v1.11.5 14/04/2025
  • v1.11.5 14/04/2025

    ACTUALLY fix chat bounding.

  • v1.11.4 14/04/2025

    Removed the custom script on/off toggle.
    Fixed an issue that allowed chat area of expand outside of the video player when clicking the show chat button.
    Fixed an issue that caused the chat area bound box to be calculated incorrectly when the chat is collapsed.

  • v1.11.3 13/04/2025

    Updated chat area constain logic. Should be slightly smoother and more performant.
    Fixed chat style not being loaded correctly.
    Fixed customized player height setting being wiped on script load.
    Cleaned up code and some minor bug fixes.

  • v1.11.2 13/04/2025

    fix floating chat not responding correctly when loading between different kinds of videos

  • v1.11.1 13/04/2025

    update description. no code change.

  • v1.11.1 13/04/2025

    fix diagonal resize not working for floating chat
    fix resize handle being positioned incorrectly under certain circumstances

  • v1.11 13/04/2025

    Added a floating chat during fullscreen mode.
    Major refactor of the entire script.

  • v1.10 09/04/2025

    Added the ability to set custom player heights.
    Fixed some bugs in the settings loading logic that previously made settings version-dependent. This likely caused little to no issues, as setting-related features had not changed for quite some time.

  • v1.9.4 07/04/2025

    Fixed a bug where simple mode would run regardless of the script's activation state.

  • v1.9.3 07/04/2025

    Minor update to error handling.
    Updated logging behaviour to better respect user debug setting. Logging changed to start AFTER settings have finished loading*.

  • v1.9 07/04/2025

    Added a debug mode. Console logging behaviour now respects the new debug setting.

  • v1.8.2 06/04/2025

    Fixed an issue that caused advanced mode settings to be loaded during initialization even if the script is set to simple mode.
    Fixed an issue that caused fullscreen playback to not be detected.

  • v1.8.1 10/02/2025

    Updated the outdated tampermonkey notification to only show once per updated insteasd of every load.
    Switch style management from GMAPI to custom Javascript as GM style management seems to be very inconsistent across different script handlers.

  • v1.8 09/02/2025

    Added localized menu items for certain major supported languages.
    Updated menu to be static for current and older Tampermonkey versions as it seems Tampermonkey only added dynamic menu items in verion 5.4.6224. Version 5.4.6224 is still in beta as of this update.

  • v1.7.2 03/02/2025

    Fix extra border in chat frame when chat is in replay mode.

  • v1.7.1 31/01/2025

    Fix settings not loading correctly if running in simple mode.

  • v1.7 31/01/2025

    Added a simple mode for those who are too busy to study the provided options and just want to use a recommended preset.

  • v1.6.2 21/01/2025

    Fixed a visual issue. The hidden "Skip Navigation" button could be sometimes be revealed when moving the masthead in cases where the vertical resolution of the screen is larger than 1000px due to how the YouTube is coded.

  • v1.6.1 20/01/2025

    Fix the headmast being able to be scrolled away when it shouldn't.

  • v1.6 19/01/2025

    Added the ability for users to move the YouTube headmast below the video player.
    Removed the temporary fullscreen fixes as youtube seems to have undid their mistake.
    Various minor bug fixes.

  • v1.5.9 14/01/2025

    Fix chat renderer styles being incorrectly applied to the chat iframe instead of the main document body.

  • v1.5.8 14/01/2025

    Minor refactor.

  • v1.5.7 12/01/2025

    Fix bug.

  • v1.5.6 12/01/2025

    [minor] Slightly refactor and improve code consistency.

  • v1.5.5 12/01/2025

    Make video player fixes always apply. YouTube seems to still have rounding issues when trying to hide their video player during the end screen during certain zoom levels (on certain browsers only?), the script now shifts the video container up by 1 pixel to hide the rounding error without being noticable during regular video playback.

  • v1.5.4 11/01/2025

    Changed the script to hide the chat in fullscreen mode until YouTube fixes their fullscreen issue. This mimics the old default behaviour of YouTube and is much easier than having to override YouTube's srubbing UI.

  • v1.5.3 10/01/2025
  • v1.5.3 10/01/2025
  • v1.5.3 10/01/2025

    [ACTUALLY] Fixed the script conflicting with the new YouTube UI and disabling the theater mode toggle button.
    Fixed the static style fixes being removed by the script.
    Fixed YouTube's new terrible fullscreen chat that would occasionally block the video element under certain zoom levels.
    Fixed some minor bugs and styling inconsistencies.

  • v1.5.2 10/01/2025

    Fixed a conflict between YouTube's new UI logic and how the script updates the video element.

Προβολή όλων των εκδόσεων κώδικα

长期地址
遇到问题?请前往 GitHub 提 Issues。