1.51.0

gorhill/uBlock1.51.0Jul 19, 2023by github-actions[bot]

AI Summary

This release adds new network filter options, introduces several utility scriptlets for storage management, and enhances compatibility with AdGuard's filtering syntax and scriptlets.

Key Highlights

  • Added `permissions` filter option to static network filters
  • Added scriptlets for local storage, session storage, and cookies
  • Added support for AdGuard's noop (`_`) network filter option
  • Added support for logical expressions in `!#if` directives
  • Added support for AdGuard's `#%#//scriptlet(...)` syntax

New Features

  • permissions network filter option
  • set-attr scriptlet
  • set-session-storage-item scriptlet
  • set-local-storage-item scriptlet
  • trusted-set-local-storage-item scriptlet
  • trusted-set-cookie scriptlet
  • set-cookie scriptlet
  • AdGuard noop compatibility
  • AdGuard scriptlet syntax compatibility

Full Release Notes

[Commits to master since this release](https://github.com/gorhill/uBlock/compare/1.51.0...master)
[Commits since last release](https://github.com/gorhill/uBlock/compare/1.50.0...1.51.0)

To install the stable build:

- **Firefox**: Click [uBlock0_1.51.0.firefox.signed.xpi](https://addons.mozilla.org/firefox/downloads/file/4141256/ublock_origin-1.51.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/>

---

## Fixes / changes

- [Remove obsolete web_accessible_resources](https://github.com/gorhill/uBlock/commit/ee0649329c59)
- [Add missing (deprecated) method to google ima](https://github.com/gorhill/uBlock/commit/cdf385f5f46e)
- [Fix regression in handling of experimental `header=` filter option](https://github.com/gorhill/uBlock/commit/aa6baf9a29db)
- [Only already normalized CSS selectors can be fast path-compiled](https://github.com/gorhill/uBlock/commit/0da7e12ea4a0)
- [Improve compatibility with AdGuard's scriptlets](https://github.com/gorhill/uBlock/commit/ec0698196563)
- [Add static network filter option: `permissions`](https://github.com/gorhill/uBlock/commit/5ebdbf3e2439)
- [Add `set-attr` scriptlet](https://github.com/gorhill/uBlock/commit/786d9b2212e9)
- [Do not bail too early when trapping properties in `acs` scriptlet](https://github.com/gorhill/uBlock/commit/fea6f7f311a5)
- [Fix regression in cloud storage import of "Filter lists" pane](https://github.com/gorhill/uBlock/commit/80b3f3c3c020)
- [Add `set-session-storage-item` scriptlet](https://github.com/gorhill/uBlock/commit/083a318090e3)
- [Prevent negative position when widget size is greater than viewport size](https://github.com/gorhill/uBlock/commit/60b21b142268)
    - [Ensure no negative value for `top` property of floating widget in logger](https://github.com/gorhill/uBlock/commit/b44815f0c8f0)
- [Add visual hint when not all sublists are enabled](https://github.com/gorhill/uBlock/commit/622cda2cdf91)
- [Add support for AdGuard's noop (`_`) network filter option](https://github.com/gorhill/uBlock/commit/33b409dd5bae)
- [Add "tabless" filter expression for logger output](https://github.com/gorhill/uBlock/commit/5d6e10318662)
- [Add support for logical expressions to `!#if` directive](https://github.com/gorhill/uBlock/commit/194354cd5d77)
    - Also added support for `!#else`
- [Add resource aliases for increased compatibility with AdGuard lists](https://github.com/gorhill/uBlock/commit/7867c2512807)
- [Add compatibility with AdGuard's `#%#//scriptlet(...)` syntax](https://github.com/gorhill/uBlock/commit/fd036a51ee20)
    - Also added support for quoted parameters in `##+js(...)` syntax
- [Fix syntax highlighter throwing with invalid patterns](https://github.com/gorhill/uBlock/commit/8b7a5264deb4)
- [Prevent creating report until filter lists are updated](https://github.com/gorhill/uBlock/commit/e50b3911052d)
- [Add support for sublist at any tree depth in "Filter lists" pane](https://github.com/gorhill/uBlock/commit/f6954430d197)
- [Add `set-local-storage-item`/`trusted-set-local-storage-item` scriptlets](https://github.com/gorhill/uBlock/commit/9443ba80a06c)
    - [Add support to remove values in `set-local-storage-item` scriptlet](https://github.com/gorhill/uBlock/commit/b283d6aa33ad)
- [Fix `m3u-prune` scriptlet](https://github.com/gorhill/uBlock/commit/bd7318da3c81)
- [Rework `nowoif` scriptlet](https://github.com/gorhill/uBlock/commit/0bd4b600cf78)
- [Add `trusted-set-cookie` scriptlet](https://github.com/gorhill/uBlock/commit/eaea26b5e97e) (requires trusted source)
- [Add `set-cookie` scriptlet](https://github.com/gorhill/uBlock/commit/27a54c084556)
- [Can't have whitespace in network filter pattern ](https://github.com/gorhill/uBlock/commit/e5bd7556d912)