Style shadowDOM

Allow stylus to target elements in shadow-root

< Feedback on Style shadowDOM

Review: OK - script works, but has bugs

§
Posted: 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".

AchernarAuthor
§
Posted: 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.

Post reply

Sign in to post a reply.