Hide upgrade plan button on ChatGPT

Hide the animated, bright yellow "upgrade plan" button on ChatGPT

  1. // ==UserScript==
  2. // @name Hide upgrade plan button on ChatGPT
  3. // @namespace https://gf.qytechs.cn/en/users/668659-denvercoder1
  4. // @match https://chat.openai.com/chat*
  5. // @grant none
  6. // @version 1.0.4
  7. // @author Jonah Lawrence
  8. // @license MIT
  9. // @description Hide the animated, bright yellow "upgrade plan" button on ChatGPT
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. const COMPACT_MODE = true;
  14.  
  15. let style = `
  16. .shim-yellow,
  17. .gold-new-button,
  18. .gold-new-button ~ span {
  19. display: none;
  20. }
  21.  
  22. nav > div ~ a.rounded-md {
  23. padding: 0;
  24. margin: 0px !important;
  25. }
  26.  
  27. nav > div ~ a.rounded-md > svg {
  28. margin-top: 1rem;
  29. margin-bottom: 1rem;
  30. margin-left: 0.75rem;
  31. }`;
  32.  
  33. if (COMPACT_MODE) {
  34. style += `
  35. nav > div > div > a.rounded-md {
  36. padding-top: 0.25rem;
  37. padding-bottom: 0.25rem;
  38. }
  39.  
  40. nav > div ~ a.rounded-md > svg {
  41. margin-top: 0.5rem;
  42. margin-bottom: 0.5rem;
  43. }`;
  44. }
  45.  
  46. document.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend", `<style>${style}</style>`);
  47. })();

QingJ © 2025

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