ChatGPT responsive + customizations

ChatGPT website is more suitable for wide screens.

当前为 2024-10-10 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name ChatGPT responsive + customizations
  3. @version 1.0.10
  4. @description ChatGPT website is more suitable for wide screens.
  5. @author BreatFR (https://breat.fr)
  6. @namespace https://gitlab.com/breatfr
  7. @homepageURL https://gitlab.com/breatfr/chatgpt
  8. @supportURL https://discord.gg/Q8KSHzdBxs
  9. @license AGPL-3.0-or-later; https://www.gnu.org/licenses/agpl-3.0.txt
  10. @preprocessor stylus
  11.  
  12. @var text fontsize "Custom font size" 1.2rem
  13. @var checkbox biggertextarea "Bigger textarea" 1
  14. @var checkbox nochatgptplus "No ChatGPT plus" 1
  15. @var checkbox widemode "Wide mode" 1
  16. ==/UserStyle== */
  17.  
  18. /* === Credits ===
  19. Website https://breat.fr
  20. facebook https://www.facebook.com/breatfroff
  21. mastodon https://mastodon.social/@breat_fr
  22. telegram https://t.me/breatfr
  23. vk https://vk.com/breatfroff
  24. X (twitter) https://x.com/breatfroff
  25. === Credits === */
  26.  
  27. @-moz-document domain("chatgpt.com") {
  28. /* Custom font size */
  29. :root {
  30. font-size: fontsize;
  31. }
  32. if biggertextarea {
  33. .max-h-\\[25dvh\\],
  34. .max-h-52 {
  35. max-height: 80vh;
  36. }
  37. }
  38. if nochatgptplus {
  39. /* Menu obtain ChatGPT Plus */
  40. nav > div:nth-of-type(3) {
  41. display: none;
  42. }
  43.  
  44. /* You reached limit above textarea */
  45. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div {
  46. padding-bottom: 0 !important;
  47. }
  48. form > div > div:nth-of-type(1) > div > div > div > div[class="flex w-full items-start gap-4 rounded-2xl border border-token-border-light bg-token-main-surface-primary py-4 pl-5 pr-3 text-sm text-token-text-primary [text-wrap:pretty] dark:border-transparent dark:bg-token-main-surface-secondary md:items-center lg:mx-auto shadow-xxs"] {
  49. display: none !important;
  50. }
  51. body:has(form > div > div:nth-of-type(1) > div > div > div[style="opacity: 1; will-change: auto;"] > button) {
  52. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div {
  53. padding-bottom: 2em !important;
  54. }
  55. }
  56. }
  57. if widemode {
  58. .md\\:max-w-3xl,
  59. .max-w-3xl {
  60. max-width: 100%;
  61. }
  62. pre > div > div:nth-of-type(3) {
  63. box-sizing: border-box !important;
  64. max-width: 100% !important;
  65. overflow: hidden !important;
  66. }
  67. code.hljs {
  68. max-width: 100% !important;
  69. width: 100% !important;
  70. white-space: break-spaces !important;
  71. }
  72. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div > button {
  73. border-color: var(--text-primary);
  74. height: 50px;
  75. width: 50px;
  76. }
  77. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div > button > svg {
  78. height: 25px;
  79. width: 25px;
  80. }
  81. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div > button:hover,
  82. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div > button:hover svg {
  83. border-color: rgb(254, 132, 132);
  84. stroke: rgb(254, 132, 132);
  85. }
  86. /* Hide scrollbars */
  87. * {
  88. scrollbar-width: none !important;
  89. -ms-overflow-style: none !important;
  90. -moz-overflow-style: none !important;
  91. -webkit-overflow-style: none !important;
  92. }
  93. ::-webkit-scrollbar {
  94. display: none !important;
  95. width: 0 !important;
  96. }
  97. }
  98. }