您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
让 ChatGPT 代码字体变小,
当前为
- // ==UserScript==
- // @name ChatGPT Code Box Styling
- // @description Change the font size and enable word wrap in ChatGPT code boxes
- // @name:zh-CN ChatGPT 代码字体变小
- // @description:zh-CN 让 ChatGPT 代码字体变小,
- // @namespace https://gf.qytechs.cn/users/1169082/
- // @version 0.1
- // @author 人民的勤务员 <toniaiwanowskiskr47@gmail.com>
- // @match https://chatgpt.com/*
- // @grant none
- // @supportURL https://github.com/ChinaGodMan/UserScripts/issues
- // @homepageURL https://github.com/ChinaGodMan/UserScripts
- // ==/UserScript==
- (function () {
- 'use strict'
- // 创建并插入自定义的CSS样式
- const style = document.createElement('style')
- style.type = 'text/css'
- style.innerHTML = `
- pre code {
- font-size: 12px !important; /* 设置字体大小为12px */
- white-space: pre-wrap !important; /* 设置自动换行 */
- word-break: break-word !important; /* 设置单词断行 */
- }
- pre {
- overflow-x: auto !important; /* 允许水平滚动 */
- }
- `
- document.head.appendChild(style)
- })()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址