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)