uBlock/src
Raymond Hill 40c315a107
Add new procedural cosmetic filter operator: :matches-media()
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2185

The argument must be a valid media query as documented on MDN, i.e.
what appears between the `@media` at-rule and the first opening
curly bracket (including the parentheses when required):
- https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries

Best practice:

Use `:matches-media()` after plain CSS selectors, if any.

Good:
    example.com###target-1 > .target-2:matches-media((min-width: 800px))

Bad (though this will still work):
    example.com##:matches-media((min-width: 800px)) #target-1 > .target-2

The reason for this is to keep the door open for a future optimisation
where uBO could convert `:matches-media()`-based filters into CSS media
rules injected declaratively in a user stylesheet.
2022-07-23 09:30:31 -04:00
..
_locales Import translation work from https://crowdin.com/project/ublock 2022-07-15 13:41:23 -04:00
css Prevent picker from being larger than viewport 2022-06-10 11:11:29 -04:00
img Add ability to report filter issue from popup panel 2021-11-11 12:49:55 -05:00
js Add new procedural cosmetic filter operator: :matches-media() 2022-07-23 09:30:31 -04:00
lib use WebAssembly-1.0 compliant function names 2022-05-22 17:34:12 +02:00
web_accessible_resources Add missing method to outbrain surrogate script 2022-06-25 11:06:05 -04:00
1p-filters.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
3p-filters.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
about.html Change github.xyz to github.link 2022-05-08 11:23:50 -04:00
advanced-settings.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
asset-viewer.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
background.html Further work on JS modules 2021-10-07 14:41:29 -04:00
cloud-ui.html Work toward bringing dark theme closer to a stable release 2022-01-30 18:35:26 -05:00
dashboard.html More fine-tuning of default theme 2022-02-03 16:24:48 -05:00
devtools.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
document-blocked.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
dyna-rules.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
logger-ui.html Fix misaligned icon in logger 2022-03-31 10:59:31 -04:00
no-dashboard.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
popup-fenix.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
settings.html More CSS fine tuning 2022-02-05 07:42:17 -05:00
shortcuts.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
support.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00
whitelist.html Bring dark theme out of experimental status 2022-02-02 15:40:47 -05:00