YouTube Watch Resize Fix for Older Browsers

This style fixes the watch resize bug on older browsers.

  1. /* ==UserStyle==
  2. @name YouTube Watch Resize Fix for Older Browsers
  3. @namespace example.com
  4. @version 20240301.20.29
  5. @description This style fixes the watch resize bug on older browsers.
  6. @author Magma_Craft
  7. @license MIT
  8. @preprocessor stylus
  9. @var checkbox belowResrequired "Use this option if you are on resolutions below than 1080p (less buggy on some videos)" 0
  10. ==/UserStyle== */
  11.  
  12. @-moz-document domain("youtube.com") {
  13. div#primary.style-scope.ytd-watch-flexy {
  14. max-width: 1280px !important;
  15. }
  16.  
  17. if belowResrequired {
  18. div#primary.style-scope.ytd-watch-flexy {
  19. max-width: var(--ytd-watch-flexy-max-player-width) !important;
  20. min-width: var(--ytd-watch-flexy-min-player-width) !important;
  21. }
  22. }
  23. }