shenzhantu/dsh-hero-headline
shenzhantu★ 0JavaScript最后同步: 2026-08-17
① 自定义 hero 标题文案,② 从背景自动取色/莫奈式动态配色
README 摘要
dsh-hero-headline 一个纯客户端的 DeepSeek Harness Web 插件:把空会话页 hero 的标题「探索未至之境(预览版)」替换成自定义文案(默认「与你的日常,便是奇迹」),并配上艺术字样式与「从背景自动取色」的莫奈式联动。 A client-only DeepSeek Harness Web plugin that replaces the empty-state hero headline("探索未至之境 / Into the Unknown")with custom text, styles it as art text, and dynamically picks its gradient from the current background — Material-You/Monet style. 功能 / Features - 改写标题文案 — 把 hero 标题替换成 NEW HEADLINE (默认「与你的日常,便是奇迹」),中英文均命中。 - 隐藏「预览版」徽章 — 同步隐藏旁边的 预览版 / Preview 小徽章。 - 艺术字样式 — 渐变/彩虹文字( background-clip: text )、白色描边、柔光投影、加粗、字距,书法/圆体字体栈优雅回退。 - 鱼图标官方蓝 — 把 hero 的 DeepSeek 小鲸鱼图标染成官方鲸鱼蓝( --dsw-static-deepseek-500 = 4176E6 );只改 fill, hover「跳一下」的动画保留 。 - 莫奈取色联动 — 读取自定义背景插件( ui-theme-background-custom )正在展示的画面,中位切分(median-cut)提取主色调作为标题文字渐变;视频背景随播放刷新、图片背景在更换时重取;取不到色自动回退默认渐变。 工作原理 / How it works - 纯浏览器端 :宿主半体( index.js )是空操作,一切在 client.js 完成;不触碰核心源码、locale 内部实现或哈希过的 CSS-Module 类名,跨小版本构建更稳。 - DOM 替换 :用 MutationObserver 找到文案恰为 探索未至之境 / Into the Unknown 的叶子 ,改写文字、应用样式,并隐藏其兄弟「预览版」徽章;hero 重渲染会自动重新套用,幂等无死循环。 - 取色 :把背景缩到 48px 画布 → 中位切分聚类出 6 个「鲜活」主色(跳过偏灰/纯黑/纯白)→ 按色相排序生成文字渐变。视频背景取 video.dsh-ubc-video 当前帧(每 PALETTE REFRESH MS 刷新),图片背景走 /ui-theme-background-custom/background 并在 URL 变化时…
在 GitHub 查看完整 README →分类
Enhancement suite for Gemini, AI Studio, Claude & ChatGPT — plus a prompt manager for any web UI, DeepSeek Harness included. / 面向 Gemini、AI Studio、Claude 与 ChatGPT 的增强套件;提示词管理器可用于任意 Web UI,含 DeepSeek Harness。
★ 19,772
zhu1090093659/dsh-web-uiPlugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
★ 5,470
omdsh-dev/DSH-better-sidebar开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git, and sub-agent pages.
★ 2,596