Created
June 20, 2026 05:46
-
-
Save CypherpunkSamurai/34499b0346264cb2aad52517778640c1 to your computer and use it in GitHub Desktop.
z.ai fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Auto-Resize Chat Input Fix | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Fixes laggy auto-resize and pasting issues for the chat textarea | |
| // @author DevTools Assistant | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const style = document.createElement('style'); | |
| style.innerHTML = ` | |
| /* The container for the textarea */ | |
| .overflow-hidden.relative.px-3.pt-3 { | |
| display: flex !important; | |
| flex-direction: column !important; | |
| height: auto !important; | |
| min-height: min-content !important; | |
| transition: none !important; | |
| overflow: visible !important; | |
| } | |
| /* The textarea itself */ | |
| textarea#chat-input { | |
| display: block !important; | |
| width: 100% !important; | |
| field-sizing: content !important; | |
| height: auto !important; | |
| min-height: 1.5em !important; | |
| max-height: 216px !important; | |
| overflow-y: auto !important; | |
| transition: none !important; | |
| will-change: height !important; | |
| resize: none !important; | |
| } | |
| `; | |
| document.head.appendChild(style); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment