claude css

a

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         claude css
// @description  a
// @match        https://claude.ai/*
// @version 0.0.1.20251221151021
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function () {
    const style = document.createElement('style');
style.id = 'claudeCssStyleId';

    style.textContent = `
div:has(> div > div > div[data-testid=user-message]) {
    background-color: red !important;
    color: black !important;
}

header > div {
    background: none !important;
}

div[data-testid="user-message"] {
    max-height: revert !important;
}

div[data-testid="user-message"] > div:last-of-type {
    background: none !important;
}

div[data-testid="user-message"] + button, div[data-testid="chat-input-grid-area"] > fieldset > div:has(> div > div > div > span > button > svg > path[d*="M205.66,194.34a8"]), button[aria-label="Scroll to bottom"]:has(> div > svg > path[d*="M10 3C10.2761 3.00006"]) {
    display: none !important;
}
        `;
    document.head.appendChild(style);
})();