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.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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;
  }

`);