Skip to content

Feature Request: Add full support for UserCSS spec set by OpenStyles #215

@Reinachan

Description

@Reinachan

Motivation

Stylus is currently the leading extension for userstyles, meaning userstyle writers tend to follow the conventions set by Stylus. However OpenStyles is not interested in porting or hosting Stylus on iOS. There's only a single extension currently (to my knowledge) that supports the full featureset of Stylus but it's slow, bloated, and privacy-invasive. It would therefore be great if this extension would support the full spec as most userstyles hosted on various sites today does not work at all.

UserCSS spec

Missing functionality

  • @moz-document url()/domain()/url-prefix()/regexp()
    This is an alternative way of declaring what urls to match for rather than placing it in the metadata. This approach lets userstyles target specific areas of a website only with styling which is especially useful for websites that have inconsistent frontends. I've used this previously when a website hosted their documentation using a separate method from their primary site, meaning the DOM was different.

  • CSS Preprocessors

    • default - standard CSS
    • stylus - stylus-lang documentation
      These allow the usage of CSS preprocessors which simplify the workflow of writing CSS and changes how @var is implemented
  • @var variables defined in metadata
    This allows users to adjust styles to their liking using simple ways of choosing values for the style. This is not as important as the above two but not supporting it will possibly break support for some userstyles.


I'd help out with this myself but my Macbook is old and I'm not sure I'll actually be able to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions