返回目录
消息通讯 插件

dsh-genshin-redirect

tianhanly/dsh-genshin-redirect

完成任务自动跳转到原神 Automatically jump to Genshin Impact after completing the task

Stars
0
Forks
0
Issues
0
更新
2 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:tianhanly/dsh-genshin-redirect

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-genshin-redirect

DeepSeek Harness web plugin — when a task (conversation turn) completes, open the Genshin Impact official site that matches the computer's Windows display language.

简体中文 · license

Preview

Preview

What it does

  • Fires at the end of every completed task (conversation turn).
  • Detects the computer language in this order (display language first):
    1. Windows display language — first entry of the user language list (HKCU\Control Panel\International\User Profile\Languages), falling back to the display-language override and then Get-UICulture;
    2. regional format (Get-Culture);
    3. the harness locale preference (Settings → Language);
    4. a configurable default (en).
  • Opens the matching official site in your default browser (a new tab; the DSH page is left untouched):
Language (display language tag) Site
zh-Hans-*, zh-CN, zh-SG https://www.yuanshen.com/#/
zh-Hant-*, zh-TW, zh-HK, zh-MO https://genshin.hoyoverse.com/zh-tw
en-* https://genshin.hoyoverse.com/en
ja https://genshin.hoyoverse.com/ja
ko https://genshin.hoyoverse.com/ko
fr / de / es / pt https://genshin.hoyoverse.com/fr · /de · /es · /pt
ru / th / vi / id https://genshin.hoyoverse.com/ru · /th · /vi · /id
it / tr https://genshin.hoyoverse.com/it · /tr
any other language https://genshin.hoyoverse.com/en (fallback)
  • A 15-second cooldown merges bursts of completions (e.g. sub-tasks finishing) into one open.

Requirements

Install

# 1. Add the plugin to your web profile:
dsh plugin --profile web add "github:<your-username>/dsh-genshin-redirect"

# 2. Add "dsh-genshin-redirect" to `dsh.profile.bundles` in the profile
#    package.json (next to the other bundle entries).

# 3. Restart the web server:
dsh web

Manual alternative: add "dsh-genshin-redirect": "github:<your-username>/dsh-genshin-redirect" to the profile package.json dependencies, add "dsh-genshin-redirect" to dsh.profile.bundles, run the profile's package install, and restart.

Local folder: dsh plugin --profile web add "file:C:\path\to\dsh-genshin-redirect".

Configuration (optional)

Extend the row in cordis.patch.yml:

- insert:
    - id: dsh-genshin-redirect
      name: dsh-genshin-redirect
      config:
        cooldownMs: 15000   # minimum gap between two browser opens (0 = always open)
        defaultLang: en     # fallback language when nothing is detected

Notes

  • The site opens in the system default browser; the harness page is not navigated away.
  • Every completed turn triggers a check. In a multi-session deployment the plugin is process-global, so completions from any session can open a tab (cooldown applies).
  • If the display language has no official Genshin site, the English global site is used.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类消息通讯
规则置信度低

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: im。