您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Disables auto-scroll on Claude.ai
当前为
// ==UserScript== // @name Claude No Auto-Scroll // @match https://claude.ai/* // @description Disables auto-scroll on Claude.ai // @version 0.0.1.20250316172351 // @namespace http://greasyfork.icu/users/1435046 // ==/UserScript== function disableAutoScroll(element) { element.style.scrollMargin = '0'; // Remove scroll margin element.scrollIntoView = () => {}; // Disable auto-scroll } // Target message containers (both user and Claude) const selector = '[class*="group"][class*="relative"]'; // Apply to existing messages document.querySelectorAll(selector).forEach(disableAutoScroll); // Observer for new messages const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { mutation.addedNodes.forEach((node) => { if (node.nodeType === 1 && node.matches(selector)) { disableAutoScroll(node); } }); }); }); observer.observe(document.body, { childList: true, subtree: true });