SUZUNAMI/dsh-has-stripper ↗★ 0

dsh-has-stripper

Remove :has() selector rules at runtime to keep style invalidation local on very large transcripts.

包名
dsh-has-stripper
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年11月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SUZUNAMI/dsh-has-stripper

dsh-has-stripper

Local-only DSH client plugin. Deletes every CSS rule whose selector contains :has( at runtime.

Why: with :has() present, changing one element's class makes Chromium re-evaluate :has() matches up the ancestor chain. On a transcript with ~100k KaTeX nodes this turns 22 class writes (opening the / command menu) into hundreds of milliseconds of style recalculation per keystroke.

Verify: window.__hasStripper → { installed: true, removed: N, passes: M } Disable: window.__hasStripper.stop() (this session only)