通义千问界面小优化

优化了通义千问的问题颜色

目前为 2024-04-03 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name 通义千问界面小优化
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-04-03
  5. // @description 优化了通义千问的问题颜色
  6. // @author https://github.com/amarillys
  7. // @match https://tongyi.aliyun.com/qianwen/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=tongyi.aliyun.com
  9. // @grant GM_addStyle
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. const css =`
  16. div[class^="questionItem--"] {
  17. background: lightslategrey;
  18. position: relative;
  19. border-radius: 8px;
  20. }
  21.  
  22. div[class^="questionItem--"] .tongyi-ui-markdown {
  23. color: lightcyan;
  24. }
  25.  
  26. div[class^="questionItem--"]::before {
  27. position: absolute;
  28. top: 0px;
  29. left: -60px;
  30. right: -20px;
  31. bottom: 0px;
  32. background-color: lightslategrey;
  33. content: "";
  34. border-radius: 8px;
  35. }`;
  36.  
  37. if (typeof GM_addStyle !== "undefined") {
  38. GM_addStyle(css);
  39. } else {
  40. let styleNode = document.createElement("style");
  41. styleNode.appendChild(document.createTextNode(css));
  42. (document.querySelector("head") || document.documentElement).appendChild(styleNode);
  43. }
  44. // Your code here...
  45. })();

QingJ © 2025

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