您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
removes auto-scroll on chatgpt
当前为
// ==UserScript== // @name ChatGPT No Auto-Scroll // @description removes auto-scroll on chatgpt // @match https://chatgpt.com/* // @version 0.0.1.20250513035702 // @namespace Violentmonkey Scripts // ==/UserScript== // Function to remove min-height and disable auto-scroll function fixElement(element) { element.style.minHeight = 'auto'; // Remove forced min-height element.scrollIntoView = () => {}; // Disable auto-scroll } // Apply to existing elements document.querySelectorAll('[data-testid^="conversation-turn-"]').forEach(fixElement); // Observer for new dynamically added elements const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { mutation.addedNodes.forEach((node) => { if (node.nodeType === 1 && node.matches('[data-testid^="conversation-turn-"]')) { fixElement(node); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); console.log("Removed min-height and disabled auto-scroll for all chat elements.");