Style shadowDOM

Allow stylus to target elements in shadow-root

< 腳本Style shadowDOM的回應

評論:普通 - 腳本能使用,但有一些問題

§
發表於:2025-08-22

Works great so I can remove some of Reddit's UI buttons!

However Stylus 1.5.51 must be used for it to work on firefox (also I found the v1.5.42 version for chrome which worked on chrome). Otherwise on the latest version of Stylus ":host * { outline: 1px solid red !important; }" shows zero red outlines.

It seems when stylus went to v2.0.6, it broke the script as stylus's source code underwent a full refactor "To allow conditional compilation into either MV2 or MV3".

Achernar作者
§
發表於:2025-09-13

Sorry for the delay. Didn't pay attention to the mail notifications.

I'll look at it. I'm still using an older version of stylus on this computer, and they probably have updated the markings on their style elements.

發表回覆

登入以回覆