Twitch: Compact Chat

Larger video in theater mode with smaller chat and emote zoom on hover

目前为 2019-01-26 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Twitch: Compact Chat
  3. // @namespace http://tampermonkey.net/
  4. // @version 2019.01.27
  5. // @description Larger video in theater mode with smaller chat and emote zoom on hover
  6. // @author cmcooper123
  7. // @match https://www.twitch.tv/*
  8. // @match http://www.twitch.tv/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. (document.head || document.documentElement).insertAdjacentHTML('beforeend',
  16.  
  17. '<style>' +
  18. '.channel-root__right-column { width: 26rem!important; }' +
  19. '.persistent-player--theatre { width: calc(100% - 26rem)!important; }' +
  20. '.chat-line__message, .chat-line__moderation, .chat-line__status { padding: .3rem 0!important; }' +
  21. '.room-selector__header { height: unset!important; }' +
  22. '.user-notice-line { padding-left: 0.1rem!important; }' +
  23. '.chat-input.tw-pd-b-2.tw-pd-x-2 { padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; }' +
  24. '.tw-textarea { margin-bottom: -1rem!important; }' +
  25. '.chat-line__message--emote:hover { transform: scale(2)!important; }' +
  26. '</style>'
  27. );
  28. })();