[feature request] disable all non-stylus styles
Straighten-Your-Back opened this issue · 1 comments
i make heavy use of stylus.
i ALSO make heavy use of firefox's "view > page style > no style" feature.
i don't want to stop seeing my client-side styles when i disable external styles.
would it be possible for stylus to implement a feature that first removes all styles, and THEN inserts my client-side styles as normal?
i find myself periodically looking for some solution to this, and each time i come to the conclusion that the only workable solution would be for stylus itself to handle what i need.
that said, if i'm missing an existing solution to this, please let me know.
There are two major problems with this feature.
-
I've never used it myself and never encountered it being mentioned anywhere for the past ~10 years, which means it's super rare, which only makes sense as it completely destroys the layout of any modern site. Making a separate userscript would be more suitable here.
-
There's no such dedicated API for extensions, so we'd have to process the entire page to strip the
link
elements,adoptedStyleSheets
, and inlinestyle
attributes, which could trigger site listeners, and there's no way to remove styles added via content_scripts->css or chrome.tabs.insertCSS of other extensions.