您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide and remove In-Text Citations from all ChatGPT responses.
// ==UserScript== // @name ChatGPT Remove In-Text Citations // @namespace https://chatgpt.com/ // @version 1.0 // @description Hide and remove In-Text Citations from all ChatGPT responses. // @author groundcat // @match https://chatgpt.com/* // @icon https://chatgpt.com/favicon.ico // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; /* Quick removal via CSS — avoids layout flashes */ const style = document.createElement('style'); style.textContent = ` /* Hide any element that contains BOTH classes */ .text-token-text-secondary.inline-flex { display: none !important; } `; document.head.appendChild(style); /* Defensive clean‑up — catches elements injected after page load */ function scrub(root = document) { root.querySelectorAll('.text-token-text-secondary.inline-flex').forEach((node) => node.remove()); } // Initial pass for anything already on screen scrub(); // Observe DOM mutations so we stay ahead of streaming messages or edits const observer = new MutationObserver((mutations) => { for (const m of mutations) { m.addedNodes.forEach((n) => { if (n.nodeType === 1) { // Only process element nodes scrub(n); } }); } }); observer.observe(document.body, { childList: true, subtree: true }); })();