stylus
stylus copied to clipboard
feat: add @match directive support
Overview
Adds support for @match directive in usercss files.
Closes #2002
What's Added
@matchdirective support for URL pattern matching- Enhanced meta parser to handle
@matchdirectives - Updated style matcher and usercss compiler for
@matchcompatibility - UI improvements to display
@matchpatterns in style management and installation
Usage
@match https://example.com/*
@match https://*.github.com/*
body {
background: red;
}
Styles with @match directives will now only apply to the specified domains.
UI Changes
- Enhanced installation UI with favicon display for
@matchdomains - Added display of
@matchpatterns in the style management interface
Files Changed
src/js/meta-parser.js- Added @match parsersrc/background/style-manager/matcher.js- Enhanced matchingsrc/background/usercss-manager.js- Updated usercss handlingsrc/js/usercss-compiler.js- Added @match compilationsrc/js/sections-util.js- Better sections processingsrc/js/prefs.js- Enhanced preferencessrc/install-usercss/index.js- Added @match support and favicon displaysrc/manage/files - UI updates and @match display