-
Notifications
You must be signed in to change notification settings - Fork 345
Open
Description
Overview
I would like to add support for the @match directive in usercss files, similar to other CSS preprocessors.
Use Case
Currently users can only use @url, @urlprefix, @domain, and @regexp directives for targeting. The @match directive would provide a more flexible way to specify URL patterns.
Proposed Implementation
- Add
@matchdirective parser in meta-parser.js - Update style matcher to handle
@matchpatterns - Enhance usercss compiler for
@matchcompatibility - Update UI to display
@matchpatterns with favicons
Example Usage
@match https://example.com/*
@match https://*.github.com/*
body {
background: red;
}Benefits
- Better style targeting precision
- Enhanced compatibility with other CSS preprocessors
- Improved user experience with visual domain indicators
Would this feature be welcome in the project?
Metadata
Metadata
Assignees
Labels
No labels