Make Stylus styles also be applied to Shadow DOM elements.
< Feedback on Stylus Shadow DOM Support
Script has been updated.
Did the update work? Been brought to this userscript from https://github.com/openstyles/stylus/issues/739#issuecomment-2798880673 and following the recommended steps, I still see some custom elements evading the global userCSS in Firefox.
Entire page is pink/green with sharp corners (just like when followed STRs in Chrome).
In Firefox, some elements, such as cookie banner, voting buttons, search bar, and videos keep their styling: colours, rounded corners and sometimes font-family.
Attaching screenshots from Firefox and Chrome for comparison.
None of the UserScript seem to be actually running.
FYI, I stick to ViolentMonkey v2.15, because all later versions are broken in Firefox. ViolentMonkey author seems to prioritize Chromium over Firefox.
For TamperMonkey, thinker with its setting. Make sure UserScripts are properly run.
Good news. I disabled Stylus option "Circumvent CSP 'style-src' via adoptedStyleSheets" and got Firefox update to 139.0b9 and now the script works the same as in Chrome. (I have adoptedStyleSheets turned off before the update when I made the previous report, so my guess is the update probably made it, because otherwise I got Schrödibug in my machine).
I am a bit confused, because I realised this after afternoon spent by making synthetic tests and debugging, when I was at one point almost certain that neither userScript manager in Firefox succeeds the "document-start" injection soon enough to set up the observers and whatnot, even got to a phase when interestingly the synthetic test worked when I reloaded the page *in the background* (via tab context menu) but didn't work when the test page was in the foreground.
Anyway, glad it works for me now, and I hope it will prevail.
Since the update 2.3.10 of Stylus on Firefox (135.0), the script doesn't work anymore. This version is the same on the Chrome web store since few days
It seems that Stylus uses classes instead of ids for its CSS injections
In the script, line 23, replacing [id^="stylus-"] by [class="stylus"] makes the script work again
Could you update the script, please?
Thanks