返回目录
界面增强 插件

dsh-has-stripper

SUZUNAMI/dsh-has-stripper

Remove :has() selector rules at runtime so style invalidation stays local on very large DSH transcripts.

Stars
0
Forks
0
Issues
0
更新
6 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:SUZUNAMI/dsh-has-stripper

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

PROJECT README

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)

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类界面增强
规则置信度高

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