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.

  1. // ==UserScript==
  2. // @name KeepChatGPT Disable Banner
  3. // @namespace cvladan.com
  4. // @version 1.2
  5. // @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.
  6. // @author Vladan Colovic
  7. // @match *://chat.openai.com/*
  8. // @run-at document-end
  9. // @grant none
  10. // @license MIT
  11. // @created 2023-06-01
  12. // @updated 2023-06-01
  13. // ==/UserScript==
  14.  
  15. const selector = "nav #kcg, .sticky #kcg";
  16.  
  17. /* Inject CSS in document head */
  18.  
  19. (function(css) {
  20. (s = (d = document).createElement('style')).textContent = css;
  21. (d.getElementsByTagName ('head')[0] || d.body || d.documentElement).appendChild(s);
  22. })(`
  23.  
  24. ${selector} * {
  25. display: none !important;
  26. }
  27.  
  28. ${selector} {
  29. color: transparent !important;
  30. min-height: 0px important!;
  31. height: 5px !important;
  32. background: none !important;
  33. padding: 0 !important;
  34. margin: 0 !important;
  35. border: 0 !important;
  36. }
  37.  
  38. `);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址