← Back to home@sorry123maker

dsh-salary-cat

dsh的月薪猫宠物

Stars
1
Language
JavaScript
Created
Aug 16, 2026
Updated
Aug 18, 2026
GitHub repo

Introduction

dsh-salary-cat

npm version npm downloads license

月薪猫 —— DeepSeek Harness Web UI 右下角常驻动画宠物。

A self-contained Cordis plugin that pins an animated mascot GIF to the bottom-right corner of the DeepSeek Harness web UI.

仓库 / Repository

https://github.com/sorry123maker/dsh-salary-cat

功能 / Features

  • 右下角常驻显示动画 GIF(月薪猫),轻微上下浮动
  • 长按(450ms)即可拖拽,松手自动记住位置,无需配置坐标
  • 位置按浏览器保存在本地(localStorage),刷新后还在
  • 尺寸、显隐、无障碍文案可配置(v1.0.0+)
  • 图片加载失败自动隐藏,不影响页面

交互 / Interaction

  • 长按拖拽:按住猫 450ms 进入拖拽模式(猫会半透明高亮),拖到任意位置松手即保存
  • 点击(短按)无副作用;拖拽中不会触发页面滚动/选择
  • 重置位置:清除浏览器 localStorage 中 dsh-salary-cat:pos 键即可回到右下角

安装 / Install

在 web profile 中安装:

dsh plugin --profile web add dsh-salary-cat

或手动在 ~/.dsh/profiles/web/package.json 加入依赖并在 dsh.profile.bundles 中登记,然后 pnpm install,重启 dsh web 生效。

配置 / Config

组合行 salary-cat 支持以下 config:

字段默认值说明
gifPath包内 assets/salary-cat.gif自定义 GIF 的绝对路径
routePath/salary-cat.gif浏览器加载图片的 URL
configPath/salary-cat.json配置 JSON 端点(一般无需改动)
maxBytes8 MiB读取文件大小上限
size200猫的显示尺寸(px)
hiddenfalsetrue 时完全隐藏
alt月薪猫无障碍图片标签

位置(right/bottom)不再配置:通过长按拖拽调整,位置保存在浏览器本地。

示例:

- id: salary-cat
  name: dsh-salary-cat
  inject: [fs, webServer]
  config:
    size: 150
    alt: 打工人猫咪

换图 / Customizing the GIF

直接替换包内 assets/salary-cat.gif(同名即可),刷新页面生效; 或通过 gifPath 指向自己的文件。

卸载 / Remove

dsh plugin --profile web remove dsh-salary-cat

License

MIT © zhuyh