🏠 Home 

优化元宝可读性

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

// ==UserScript==
// @name             优化元宝可读性
// @namespace        https://github.com/qianjunlang/
// @version          2.1
// @description      移除元宝页面的多余元素,聊天气泡颜色模拟微信,提供更好的阅读体验
// @icon             https://cdn-bot.hunyuan.tencent.com/logo.png
// @author           qianjunlang
// @match            https://yuanbao.tencent.com/*
// @grant            none
// @license          MIT
// @run-at           document-end
// ==/UserScript==
(function() {
'use strict';
const css = `
#app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__tool{
position: fixed;
top:84px;
left:21px;
}
#app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__tool > button {
padding:3px;
height:22px;
}
#app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__tool > button > span.t-button__text{
display:none;
}
#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 {
padding: 0 !important;
}
#app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__content--common__header,
.yb-layout__content.agent-layout__content .agent-dialogue .agent-dialogue__content-wrapper .agent-dialogue__content-copyright,
#app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__tool > div,
#app .yb-layout__content.agent-layout__content .agent-dialogue__content .agent-dialogue__content--common__content .agent-chat__list__content-wrapper .agent-chat__scroll-arrow{
display:none;
}
.agent-chat__bubble.agent-chat__bubble--human.agent-chat__conv--human .agent-chat__bubble__content{
background : #CCE8CF !important;
}
.hyc-common-markdown.hyc-common-markdown-style{
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color:black;
}
`;
const style = document.createElement('style');
style.textContent = css;
document.head.appendChild(style);
})();