您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Sets height to revert on the first span ancestor of path elements with specific d attribute
// ==UserScript== // @name ChatGPT adjust height of source bar // @match https://chatgpt.com/* // @description Sets height to revert on the first span ancestor of path elements with specific d attribute // @version 0.0.1.20250718195752 // @namespace https://greasyfork.org/users/1435046 // ==/UserScript== function setSpanHeight() { const pathElements = document.querySelectorAll('path[d^="M14.0857 8.74999C14.0857 5.80355"]'); pathElements.forEach(pathElement => { let currentElement = pathElement; while (currentElement && currentElement.tagName.toLowerCase() !== 'span') { currentElement = currentElement.parentElement; } if (currentElement) { currentElement.style.setProperty('height', 'revert', 'important'); } }); } const observer = new MutationObserver(setSpanHeight); observer.observe(document.body, { childList: true, subtree: true }); setSpanHeight();