优化元宝可读性

移除元宝页面的多余元素,聊天气泡颜色模拟微信,提供更好的阅读体验

  1. // ==UserScript==
  2. // @name 优化元宝可读性
  3. // @namespace https://github.com/qianjunlang/
  4. // @version 2.2
  5. // @description 移除元宝页面的多余元素,聊天气泡颜色模拟微信,提供更好的阅读体验
  6. // @icon https://cdn-bot.hunyuan.tencent.com/logo.png
  7. // @author qianjunlang
  8. // @match https://yuanbao.tencent.com/*
  9. // @grant none
  10. // @license MIT
  11. // @run-at document-end
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. const css = `
  18.  
  19. #app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__content--common__input.agent-chat__input-box .agent-dialogue__content--common__input-box {
  20. padding: 0 !important;
  21. }
  22. #app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__content--common__header,
  23. .yb-layout__content.agent-layout__content .agent-dialogue .agent-dialogue__content-wrapper .agent-dialogue__content-copyright,
  24. #app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__tool > div,
  25. #app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__content--common__content .agent-chat__list__content-wrapper .agent-chat__scroll-arrow{
  26. display:none;
  27. }
  28.  
  29. .agent-chat__bubble.agent-chat__bubble--human.agent-chat__conv--human .agent-chat__bubble__content{
  30. background : #CCE8CF !important;
  31. }
  32.  
  33. .hyc-common-markdown.hyc-common-markdown-style{
  34. text-rendering: optimizeLegibility;
  35. -webkit-font-smoothing: antialiased;
  36. -moz-osx-font-smoothing: grayscale;
  37. color:black;
  38. }
  39.  
  40.  
  41. `;
  42.  
  43. const style = document.createElement('style');
  44. style.textContent = css;
  45. document.head.appendChild(style);
  46.  
  47.  
  48. })();

QingJ © 2025

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