Revert Twitch Chatbox to Old Size

Revert chat input box to be two lines height always. No resize.

// ==UserScript==
// @name         Revert Twitch Chatbox to Old Size
// @namespace    http://tampermonkey.net/
// @version      1.11
// @description  Revert chat input box to be two lines height always.  No resize.
// @author       CommonKitten
// @match        *://www.twitch.tv/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    //Credit to twitch user VGAcab for this change
    if (document.readyState === "interactive" || document.readyState === "complete") {
        setTimeout(ApplyFix, 200);
    }
})();

function ApplyFix() {
    document.getElementsByTagName("head")[0].innerHTML += "<style type=\"text/css\">textarea.tw-block.tw-border-radius-medium.tw-font-size-6.tw-full-width.tw-textarea.tw-textarea--no-resize {height: 55px !important;} button.tw-button-icon.tw-button-icon--secondary.tw-interactive {margin-bottom: 15px !important; position: relative !important;}</style>";
}

QingJ © 2025

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