您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
claude no scroll
- // ==UserScript==
- // @name Claude No Auto-Scroll
- // @description claude no scroll
- // @match https://claude.ai/*
- // @version 0.0.1.20250316174259
- // @namespace https://greasyfork.org/users/1435046
- // ==/UserScript==
- function disableElementAutoScroll(element) {
- // Remove any forced heights
- element.style.minHeight = 'auto';
- element.style.height = 'auto';
- // Disable scroll-into-view behavior
- element.scrollIntoView = () => {};
- }
- // Process existing messages
- document.querySelectorAll('.group.relative').forEach(disableElementAutoScroll);
- // Watch for new messages
- new MutationObserver((mutations) => {
- mutations.forEach(({ addedNodes }) => {
- addedNodes.forEach(node => {
- if(node.nodeType === 1 && node.matches('.group.relative')) {
- disableElementAutoScroll(node);
- }
- });
- });
- }).observe(document.body, {
- childList: true,
- subtree: true
- });