1.44.0
gorhill/uBlock1.44.0Aug 16, 2022by github-actions[bot]
AI Summary
Introduced the new cosmetic filter operator `:matches-media()` and improved WebAssembly compliance and dark theme rendering in the DOM inspector.
Key Highlights
- New procedural cosmetic filter operator: `:matches-media()`
- Add 0.5s mp3 redirectable resource
- Fix dark theme issue in DOM inspector
- Use WebAssembly-1.0 compliant function names
New Features
- Pseudo-operator `:matches-media()`
- mp3 resource support
Full Release Notes
[Commits to master since this release](https://github.com/gorhill/uBlock/compare/1.44.0...master)
[Commits since last release](https://github.com/gorhill/uBlock/compare/1.43.0...1.44.0)
To install the stable build:
- **Firefox**: Click [uBlock0_1.44.0.firefox.signed.xpi](https://addons.mozilla.org/firefox/downloads/file/3989793/ublock_origin-1.44.0.xpi)
- [uBO works best on Firefox](https://github.com/gorhill/uBlock/wiki/uBlock-Origin-works-best-on-Firefox).
- **Chromium**: Install from the Chrome store (CWS): <https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm>
- **Edge**: Install from Microsoft Store: <https://microsoftedge.microsoft.com/addons/detail/odfafepnkmbhccpbejgmiehpchacaeak>
- The Microsoft Store version of uBO is published by [Nicole Rolls](https://github.com/nicole-ashley/uBlock-Edge)
- **Opera**: Install from Opera addons: <https://addons.opera.com/en/extensions/details/ublock/>
---
## New procedural cosmetic filter operator: `:matches-media()`
[Commit](https://github.com/gorhill/uBlock/commit/40c315a107257f5b1ac0c7fc92377934b23f6ed6)
The argument must be a valid media query [as documented on MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries), i.e. what appears between the `@media` at-rule and the first opening curly bracket (including the parentheses when required).
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`
## Fixes:
- [Add 0.5s mp3 redirectable resource](https://github.com/gorhill/uBlock/commit/c521479ef9d9676e08fcd6751fde7330dce189e7)
- [Add queue-related initialization code to AMZN shim script](https://github.com/gorhill/uBlock/commit/e62604f889a8bbe68a0dbbc09a5b946f35d417cb)
- [Fix dark theme issue in DOM inspector](https://github.com/gorhill/uBlock/commit/b01d57ab631a7c5e39eadd6998382d1eaf0beae5)
- [Better detect invalid cosmetic filters](https://github.com/gorhill/uBlock/commit/97befd116b75d1f768b8e663b90a15bb25fda4e9)
- [Properly "bleed" 3p rules onto 3p-script/3p-frame cells](https://github.com/gorhill/uBlock/commit/019f3f1739b4292d4fc0e433cccebb6697319e7b)
- [Skip testing context when none present in acis scriptlet](https://github.com/gorhill/uBlock/commit/9d81b7c4d9fedf16ba74493481c1136fde7b1f3e)
- [Ignore auto-repeat events in ctrl keydown event handler](https://github.com/gorhill/uBlock/commit/d00364860c0796ae4935b5b57634c991d6131bfe)
- [Fix popup panel for Thunderbird](https://github.com/gorhill/uBlock/commit/2ff0abfb89390aec3efb68880aec3f92ce9ccade)
- [Prevent picker from being larger than viewport](https://github.com/gorhill/uBlock/commit/6fbcfc51144bdc56cd87f3a621c9d60a57c70bb4)
- [use WebAssembly-1.0 compliant function names](https://github.com/gorhill/uBlock/commit/798338e7fadc69fe6bd75428c9a8588840cbbe52) (by @rathann)