您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shrink and style pre/code blocks on Grok pages only
当前为
// ==UserScript== // @name Grok Code Style // @namespace http://tampermonkey.net/ // @version 1.2 // @description Shrink and style pre/code blocks on Grok pages only // @author You // @match https://x.com/i/grok* // @match https://grok.com/* // @match https://grok.x.ai/* // @match https://x.ai/* // @exclude https://greasyforks.org/* // @exclude https://*.org/* // @grant GM_addStyle // @license MIT // ==/UserScript== GM_addStyle(` :not([class*="highlight"]:not([id*="highlight"])) > pre, :not([class*="highlight"]:not([id*="highlight"])) > code { max-height: 150px; overflow-y: auto; font-size: 11px; line-height: 1.2; background-color: #f5f5f5; padding: 4px; border: 1px solid #ddd; margin: 0; display: block; } `);