CaoNing3212/dsh-plugin-image-wallpaper

根据上下文,用户要求翻译英文插件描述为简体中文,但给出的文本“自定义Deepseek Harness webUI主题”本身就是中文,无需翻译。我将输出原文本。

Project Overview项目介绍

The image-wallpaper DSH plugin lets users upload an image as a full-page background using cover sizing with fixed attachment. It offers three real-time controls: a dark scrim (0–80%), wallpaper opacity (0–100%), and blur (0–40px) applied only to the background via backdrop-filter. Text color auto-adapts to image brightness and scrim strength. Settings persist in localStorage, surviving page reloads and restarts, with large images auto-compressed to JPEG. The plugin is a client-side bundle mounted on the body and body::before layers, and disabling it restores defaults. Note: it targets the dsh web client only.

DSH 插件 image-wallpaper 允许用户上传一张图片作为整个 Web 页面背景壁纸,支持 cover 铺满与固定背景。提供暗色遮罩(0–80%)、壁纸透明度(0–100%)和模糊(0–40px)三项实时调节,文字颜色随图片明暗自动适配。设置通过 localStorage 持久化,刷新或重启服务后自动恢复,大图自动转 JPEG 压缩。纯浏览器端实现,挂在 body 背景与 body::before 层,停止插件即可一键还原。注意:仅在 dsh web 客户端生效,宿主页可能存在跨域限制。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:CaoNing3212/dsh-plugin-image-wallpaper

把 CaoNing3212/dsh-plugin-image-wallpaper 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-image-wallpaper

上传一张图片,把它作为整个 Web 页面的背景壁纸(cover 铺满、固定背景),并支持实时调整:

  • 暗色遮罩(0–80%,默认 30%)— 半透明黑层盖在壁纸上,文字更易读
  • 壁纸透明度(0–100%)— 壁纸向图片平均色渐变淡出
  • 模糊(0–40px)— 只模糊壁纸本身(backdrop-filter),界面内容保持清晰

入口:侧边栏 设置 → 自定义主题。文字颜色会随图片明暗与遮罩强度自动适配。

壁纸设置会持久化到浏览器 localStorage,重启 Web 服务或刷新页面后自动恢复(图片以 data URL 保存,过大时自动转 JPEG 压缩;移除壁纸即清除)。

实现说明

  • 纯浏览器端插件(client bundle),宿主行仅用于让 client-modules 扫描到包。
  • 壁纸挂在 body 背景 + body::before(scrim / blur,z-index: -1,不遮挡 UI)。
  • 通过 ctx.theme.overrideTokens 覆盖 --dsw-alias-* 令牌层;停止插件自动还原。
  • 状态保存在插件作用域,切换设置页不丢失;移除壁纸一键还原。

打包/安装(规范)

dsh plugin --profile web add 工具/dsh-plugin-image-wallpaper
dsh --profile web --dump-config   # 验证 "# == dsh-plugin-image-wallpaper" 层
# 重启 dsh web 后刷新页面生效
← 上一个 Prev dsh-approval-ai 下一个 Next drive9-dsh →