z css

a

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        z css
// @description a
// @match       https://chat.z.ai/*
// @run-at      document-start
// @version 0.0.1.20250805124526
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function () {
    const css = `
:root {
color-scheme: light dark !important;
}

*:not(div[data-language="python"]):not(div[data-language="python"] *):not(code):not(code *) {
    color: revert !important;
}

*{
    background: revert !important;
min-width: revert !important;
}

nav {
    background-color: canvas !important;
}

div:has(> div > div > div > button > svg > path[d^="M10 3a.75.75 0 01.75.75v10.638l3.96-4.158a.75.75"]) {
    display: none !important;
}

div.chat-user > div > div > div.rounded-xl {
    background-color: red !important;
    color: black !important;
}

button:has(> svg.rotate-45 > path[d^="M512 853.333333c-25.6"]) {
    display: none !important;
}

div:has(> div > div.suggestionContainer) {
    display: none !important;
}
  `;
    const style = document.createElement('style');
    style.id = 'zCssStyleId';
    style.textContent = css;
    document.head.appendChild(style);
})();