ChatGPT responsive + customizations

ChatGPT website is more suitable for wide screens.

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

  1. /* ==UserStyle==
  2. @name ChatGPT responsive + customizations
  3. @version 1.0.9
  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. /* You reached limit above textarea */
  44. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div {
  45. padding-bottom: 0;
  46. }
  47. form > div > div:nth-of-type(1) {
  48. display: none;
  49. }
  50. }
  51. if widemode {
  52. .md\\:max-w-3xl,
  53. .max-w-3xl {
  54. max-width: 100%;
  55. }
  56. pre > div > div:nth-of-type(3) {
  57. box-sizing: border-box !important;
  58. max-width: 100% !important;
  59. overflow: hidden !important;
  60. }
  61. code.hljs {
  62. max-width: 100% !important;
  63. width: 100% !important;
  64. white-space: break-spaces !important;
  65. }
  66. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div > button {
  67. border-color: var(--text-primary);
  68. height: 50px;
  69. width: 50px;
  70. }
  71. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div > button > svg {
  72. height: 25px;
  73. width: 25px;
  74. }
  75. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div > button:hover,
  76. main > div:nth-of-type(1) > div:nth-of-type(1) > div > div > div > div > button:hover svg {
  77. border-color: rgb(254, 132, 132);
  78. stroke: rgb(254, 132, 132);
  79. }
  80. /* Hide scrollbars */
  81. * {
  82. scrollbar-width: none !important;
  83. -ms-overflow-style: none !important;
  84. -moz-overflow-style: none !important;
  85. -webkit-overflow-style: none !important;
  86. }
  87. ::-webkit-scrollbar {
  88. display: none !important;
  89. width: 0 !important;
  90. }
  91. }
  92. }