跳过主要内容
S

dsh-has-stripper

suzunami/dsh-has-stripper

运行时删除 :has() 选择器规则,让超大会话记录下的样式失效计算保持局部化。

安装

dsh plugin --profile web add github:suzunami/dsh-has-stripper

README

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)

相关插件