优化元宝可读性

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name             优化元宝可读性
// @namespace        https://github.com/qianjunlang/
// @version          2.4
// @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__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,
        #chat-content .index_pc_download_ads_card_banner__FillW
        {
            display:none;
        }

        .agent-chat__bubble.agent-chat__bubble--human.agent-chat__conv--human .agent-chat__bubble__content{
            background : #07C160 !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);


})();