KeepChatGPT Disable Banner

The KeepChatGPT script, while useful, is intrusive due to its exaggerated design and placement on the ChatGPT page. To alleviate this, only one CSS style is applied, reducing the interface to a tiny hoverable area.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         KeepChatGPT Disable Banner
// @namespace    cvladan.com
// @version      1.2
// @description  The KeepChatGPT script, while useful, is intrusive due to its exaggerated design and placement on the ChatGPT page. To alleviate this, only one CSS style is applied, reducing the interface to a tiny hoverable area.
// @author       Vladan Colovic
// @match        *://chat.openai.com/*
// @run-at       document-end
// @grant        none
// @license      MIT
// @created      2023-06-01
// @updated      2023-06-01
// ==/UserScript==

const selector = "nav #kcg, .sticky #kcg";

/* Inject CSS in document head */

(function(css) {
  (s = (d = document).createElement('style')).textContent = css;
  (d.getElementsByTagName ('head')[0] || d.body || d.documentElement).appendChild(s);
})(`

  ${selector} * {
    display: none !important;
  }

  ${selector} {
    color: transparent !important;
    min-height: 0px important!;
    height: 5px !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

`);