Style shadowRoot

Allow stylus to target elements in shadow-root

目前為 2023-02-10 提交的版本,檢視 最新版本

作者
Achernar
評價
0 0 0
版本
0.1
建立日期
2023-02-10
更新日期
2023-02-10
尺寸
4.4 KB
授權條款
未知
腳本執行於

This userscript allows users of Stylus to style shadow-root elements that are out of reach of global stylesheets.

Any style rule whose selector includes :host or :host-context will be injected into the shadow-root nodes.

By default the userscript is not executed on any website. You'll have to edit the style settings (eg. in tampermonkey) open the userstyle, go to the style's "settings" tab and add the mask (don't forget the *) of the website(s) you want to run it on.

To test: