Twitch: Compact Chat

Larger video in theater mode with smaller chat

当前为 2019-01-13 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Twitch: Compact Chat
// @namespace    http://tampermonkey.net/
// @version      2019.01.13
// @description  Larger video in theater mode with smaller chat
// @author       cmcooper123
// @match        https://www.twitch.tv/*
// @match        http://www.twitch.tv/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

	(document.head || document.documentElement).insertAdjacentHTML('beforeend',

		'<style>' +
			    '.channel-root__right-column { width: 26rem; }' +
			    '.persistent-player--theatre { width: calc(100% - 26rem)!important; }' +
          '.chat-line__message, .chat-line__moderation, .chat-line__status { padding: .3rem 0!important; }' +
          '.room-selector__header { height: unset!important; }' +
          '.user-notice-line { padding-left: 0.1rem!important; }' +
          '.chat-input.tw-pd-b-2.tw-pd-x-2 { padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; }' +
          '.tw-textarea { margin-bottom: -1rem!important; }' +
        '</style>'
     );
     
})();