chatgpt css

Customize styles for ChatGPT tables and text

  1. // ==UserScript==
  2. // @name chatgpt css
  3. // @description Customize styles for ChatGPT tables and text
  4. // @match https://chat.openai.com/*
  5. // @match https://chatgpt.com/*
  6. // @version 0.0.1.20250706232654
  7. // @namespace https://gf.qytechs.cn/users/1435046
  8. // ==/UserScript==
  9.  
  10. (function () {
  11. const style = document.createElement('style');
  12. style.textContent = `
  13. * {
  14. /*min-width: unset !important;
  15. -webkit-line-clamp: unset !important;*/
  16. min-width: revert !important;
  17. -webkit-line-clamp: revert !important;
  18. }
  19.  
  20. #thread * {
  21. /*margin-left: unset !important;
  22. margin-right: unset !important;*/
  23. margin-left: revert !important;
  24. margin-right: revert !important;
  25. }
  26.  
  27. div[class*="tableContainer"] {
  28. /*width: unset !important;*/
  29. width: revert !important;
  30. }
  31.  
  32. div[class*="tableContainer"] * {
  33. /*padding: unset !important;
  34. height: unset !important;*/
  35. padding: revert !important;
  36. height: revert !important;
  37. }
  38.  
  39. div.text-base {
  40. /*padding: unset !important;*/
  41. padding: revert !important;
  42. }
  43.  
  44. .katex {
  45. overflow-x: auto;
  46. overflow-y: visible !important;
  47. }
  48.  
  49. .katex .strut {
  50. /*display: unset !important;*/
  51. display: revert !important;
  52. }
  53. `;
  54. document.head.appendChild(style);
  55. })();

QingJ © 2025

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