dsh-password-shield
其他 活跃维护

dsh-password-shield

ruby1304/dsh-password-shield

轻量级网页插件,定向拦截iCloud密码自动填充浮层,避免其在旧会话的输入框上方弹出遮挡。安装后静默运行,只处理这一弹窗,不干扰聊天、输入及其他功能。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
8
Open Issues
JavaScript
主要语言
MIT
开源协议
167 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:ruby1304/dsh-password-shield
git clone https://github.com/ruby1304/dsh-password-shield.git
git clone git@github.com:ruby1304/dsh-password-shield.git
README.md main

dsh-password-shield

A narrowly scoped DSH web plugin that blocks the iCloud Passwords completion-list popup floating over the chat composer in old conversations.

The problem

The iCloud Passwords Chrome extension applies WebKit-style credential-field heuristics to every page. On some DSH conversation pages it misclassifies the chat composer and injects its empty completion list:

  • iCloud Passwords
  • Open Passwords App
  • Find and create passwords

No saved credential is required. The empty-state popup itself confirms that the extension offered autofill even though it found no credential for the DSH URL.

The popup is implemented as a <div popover> appended to <body>. Its open shadow root contains an iframe whose extension URL points to completion_list.html.

The fix

The plugin watches the DOM for exactly that structure. When it appears, it removes the completion-list iframe and forces its host invisible while keeping the host connected, allowing the extension to finish its own show/hide bookkeeping safely.

It intentionally does not:

  • change input[type=password] into another type;
  • modify API-key fields;
  • change autocomplete attributes;
  • read or store field values;
  • hide ordinary DSH popovers;
  • hide unrelated extension iframes.

Install

dsh plugin --profile web add dsh-password-shield@0.3.0 --save-exact --ignore-scripts
# Restart dsh web.

For a reviewed checkout during development only:

dsh plugin --profile web add github:ruby1304/dsh-password-shield#<full-commit-sha> --save-exact --ignore-scripts

Never use a mutable branch or link: checkout as production state.

Privacy and security

  • The Host half is a no-op. It has no credential, filesystem, process or network access.
  • The browser half never reads input values and never changes password or API-key fields.
  • Matching is limited to the public iCloud Passwords extension ID and a completion_list.html iframe inside an open shadow root.
  • The plugin sends no telemetry and stores no state.

Uninstall with dsh plugin --profile web remove dsh-password-shield, restart DSH Web, and reload open pages. A completion-list iframe already removed from the current document is restored only by that page reload.

Tests

npm install
npm run check
npm run release:check

Tests cover pre-existing and dynamically inserted iCloud completion lists, ordinary DSH popovers, unrelated extension iframes, and the guarantee that password/text inputs remain untouched.

License

MIT