Greasy Fork镜像 支持简体中文。

Chat Mfweb Beautify

为 chat.mfweb.top 提供美化样式的脚本

  1. // ==UserScript==
  2. // @name Chat Mfweb Beautify
  3. // @namespace https://gist.github.com/Nyaasu66/9cfffb9431b4e5440f4b92a0ae9ef4bd
  4. // @version 0.1.3
  5. // @description 为 chat.mfweb.top 提供美化样式的脚本
  6. // @author Nyaasu66
  7. // @match https://chat.mfweb.top/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=mfweb.top
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. "use strict";
  15. // add some style to class css-1i6ejgd
  16. const style = document.createElement("style");
  17. style.innerHTML = `
  18. .MuiTypography-root.MuiTypography-body2.MuiTypography-noWrap.MuiListItemText-primary,
  19. .MuiTypography-root.MuiTypography-body2.MuiListItemText-secondary {
  20. font-size: 12px;
  21. }
  22. .MuiCard-root {
  23. transform: scale(0.85);
  24. }
  25. .MuiToolbar-root.MuiToolbar-gutters.MuiToolbar-regular {
  26. min-height: 40px;
  27. }
  28. .MuiDrawer-root > .MuiDrawer-paper {
  29. margin-top: 40px;
  30. height: calc(100% - 40px);
  31. }
  32. header.MuiPaper-root {
  33. background-color: #202123;
  34. }
  35. .MuiList-root::-webkit-scrollbar-thumb {
  36. background-color: #ececf1;
  37. border-radius: 30px;
  38. }
  39. .MuiList-root::-webkit-scrollbar-track {
  40. background-color: transparent;
  41. }
  42. #root > .MuiStack-root > .MuiDrawer-docked > .MuiPaper-root > .MuiList-root {
  43. overflow: hidden;
  44. }
  45. .MuiStack-root {
  46. font-size: 14px;
  47. }
  48. .MuiFormControl-root.MuiFormControl-fullWidth {
  49. width: 60%;
  50. margin: 0 auto;
  51. }
  52. `;
  53. document.head.appendChild(style);
  54.  
  55. window.onload = function () {
  56. document.querySelector(".MuiTypography-h6").innerHTML = "ChatGPT";
  57. const elem = document.querySelector(".MuiList-root");
  58. elem.addEventListener("mouseenter", () => {
  59. elem.style.overflow = "auto";
  60. });
  61. elem.addEventListener("mouseleave", () => {
  62. elem.style.overflow = "hidden";
  63. });
  64.  
  65. document.title = "ChatGPT";
  66. };
  67. })();

QingJ © 2025

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