YouTube Chat Bubbles

Make YouTube Chat Bubbles

目前为 2022-12-30 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name YouTube Chat Bubbles
  3. @version 0.1.1
  4. @namespace github.com/cyfung1031
  5. @license MIT
  6. @description Make YouTube Chat Bubbles
  7. @author CY Fung
  8. @preprocessor stylus
  9. @var color color-bubble-text "Bubble Text Color" #000
  10. @var color color-bubble-background "Bubble Background Color" #bccbbc
  11. ==/UserStyle== */
  12. @-moz-document url-prefix("https://www.youtube.com/live_chat") {
  13.  
  14. #message.yt-live-chat-text-message-renderer {
  15. padding: 3px 10px;
  16. margin-left: -2px;
  17. background: color-bubble-background;
  18. border-radius: 12px;
  19. color: color-bubble-text;
  20. display: flex;
  21. flex-wrap: wrap;
  22. align-items: center;
  23. min-height: 2.6rem;
  24. }
  25. #message.yt-live-chat-text-message-renderer a{
  26. color: inherit !important;
  27. }
  28.  
  29. #message.yt-live-chat-text-message-renderer::before {
  30. content: '';
  31. --egl-btn-half-border-size: 7px;
  32. --egl-btn-color: color-bubble-background;
  33. display: block;
  34. position: absolute;
  35. border-top: 0;
  36. border-right: 7px inset transparent;
  37. border-bottom: 10px solid var(--egl-btn-color);
  38. border-left: 10px inset transparent;
  39. transform: rotate(46deg);
  40. margin-left: -18px;
  41. margin-top: -8px;
  42. transform-origin: center center;
  43. pointer-events: none;
  44. touch-action: none;
  45. user-select: none;
  46. }
  47.  
  48. yt-live-chat-author-chip {
  49. margin-top: 4px;
  50. margin-bottom: 2px;
  51. }
  52.  
  53. #author-photo {
  54. align-self: center;
  55. display: flex;
  56. }
  57. }