CSS Fix for YouTube Shorts

to fix YouTube Shorts issues

  1. /* ==UserStyle==
  2. @name CSS Fix for YouTube Shorts
  3. @namespace github.com/openstyles/stylus
  4. @version 1.0.1
  5. @description to fix YouTube Shorts issues
  6. @author CY Fung
  7. @license MIT
  8. @preprocessor stylus
  9. @var checkbox enable-shorts-channel-handle-to-name "Handle To Name" 1
  10. ==/UserStyle== */
  11.  
  12. @-moz-document url-prefix("https://www.youtube.com/shorts/") {
  13. /* Insert code here... */
  14.  
  15. if enable-shorts-channel-handle-to-name {
  16. userscript-control[enable-shorts-channel-handle-to-name] {
  17. top: 0;
  18. }
  19. }
  20.  
  21. ytd-reel-player-header-renderer:not([is-expanded-overlay]) #channel-container.ytd-reel-player-header-renderer {
  22. flex-wrap: wrap;
  23. }
  24.  
  25. ytd-reel-player-header-renderer:not([is-expanded-overlay]) #channel-container.ytd-reel-player-header-renderer #channel-info.ytd-reel-player-header-renderer {
  26. min-width: 172px;
  27. }
  28. ytd-reel-player-header-renderer:not([is-expanded-overlay]) #channel-container.ytd-reel-player-header-renderer #channel-info.ytd-reel-player-header-renderer #text-container a {
  29. max-width: 248px;
  30. overflow: hidden;
  31. white-space: nowrap;
  32. text-overflow: ellipsis;
  33. }
  34. ytd-reel-video-renderer[is-watch-while-mode] ytd-reel-player-header-renderer:not([is-expanded-overlay]) #channel-container.ytd-reel-player-header-renderer #channel-info.ytd-reel-player-header-renderer #text-container a {
  35. max-width: 180px;
  36. }
  37.  
  38. ytd-reel-player-header-renderer:not([is-expanded-overlay]) #channel-container.ytd-reel-player-header-renderer #subscribe-button.ytd-reel-player-header-renderer {
  39. margin-left: auto;
  40. }
  41. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址