// ==UserScript== // @name 豆包/Deepseek 消息宽屏 // @namespace http://tampermonkey.net/ // @version 2026-06-27 // @description CSS永久撑开,切换会话永不失效 // @author foxerz // @match https://chat.deepseek.com/* // @match https://www.doubao.com/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript== (function() { 'use strict'; function getSite() { const url = location.href; if (url.includes('deepseek.com')) return 'deepseek'; if (url.includes('doubao.com')) return 'doubao'; return null; } const site = getSite(); if (!site) return; const widechatstyle = 'wide-chat-style'; if (document.getElementById(widechatstyle)) return; const style = document.createElement('style'); let css = ''; console.log(site); if (site === 'doubao') { css = ` .list_items [class*="max-w-(--content-max-width)"] { max-width: 100% !important; margin-left: 10px !important; margin-right: 50px !important; } .list_items [class*="max-w-"] { max-width: 100% !important; margin-left: 10px !important; margin-right: 50px !important; } `; style.textContent = css; document.head.appendChild(style); console.log(`✅ 宽屏样式已注入`); } else if (site === 'deepseek') { css = ` [class*="ds-virtual-list-items"][style*="--message-list-max-width"] { padding-left: 0px !important; padding-right: 100px !important; width: 100% !important; box-sizing: border-box !important; } `; style.textContent = css; document.head.appendChild(style); console.log(`✅ 宽屏样式已注入`); } })();