Compare commits

...

3 commits

Author SHA1 Message Date
Raymond Hill
8f544e53bc
New revision for dev build 2026-02-24 08:59:17 -05:00
Raymond Hill
b230effdbc
Update changelog 2026-02-24 08:55:51 -05:00
Raymond Hill
98d3e9500a
Improve json-edit-related scriptlets 2026-02-24 08:50:41 -05:00
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,4 @@
- [Improve `json-edit`-related scriptlets](https://github.com/gorhill/uBlock/commit/98d3e9500a)
- [Improve `trusted-create-html` scriptlet](https://github.com/gorhill/uBlock/commit/baffd32dab)
- [Improve `prevent-fetch` scriptlet](https://github.com/gorhill/uBlock/commit/2ce376cf1d)
- [Fix handling of `extraMatch` parameter in `trusted-click-element` scriptlet](https://github.com/gorhill/uBlock/commit/a8ad95394d)

2
dist/version vendored
View file

@ -1 +1 @@
1.69.1.4
1.69.1.5

View file

@ -486,7 +486,10 @@ export class JSONPath {
if ( outcome ) { return k; }
}
#modifyVal(obj, key) {
const { modify, rval } = this.#compiled;
let { modify, rval } = this.#compiled;
if ( typeof rval === 'string' ) {
rval = rval.replace('${now}', `${Date.now()}`);
}
switch ( modify ) {
case undefined:
obj[key] = rval;