Updated "set-cookie" and "set-local-storage-item"

garry-ut99 2024-08-21 11:01:05 +00:00
parent 99f184eac1
commit c585d80133

@ -1335,6 +1335,7 @@ Parameters:
- `approved`<sup>5</sup> / `disapproved`<sup>5</sup>
- `hide`<sup>6</sup> / `hidden`<sup>6</sup>
- `essential`<sup>7</sup> / `nonessential`<sup>7</sup>
- `checked`<sup>8</sup> / `unchecked`<sup>8</sup>
- optional, cookie path, defaults to /; possible values:
- `/`: root path
@ -1347,6 +1348,7 @@ Parameters:
<sup>5. [1.57.3rc1](https://github.com/gorhill/uBlock/commit/7f0b2f4a5ef0013d4b5256adc343994bcce0f90e)</sup>
<sup>6. [1.58.1b7](https://github.com/gorhill/uBlock/commit/bdb99862ce93d61e9202ee1bad656276e4a9ee5a)</sup>
<sup>7. [1.58.1rc0](https://github.com/gorhill/uBlock/commit/37d31a82d8)</sup>
<sup>8. [1.59.1b5](https://github.com/gorhill/uBlock/commit/3e2171f550)</sup>
The scriptlet encodes cookie names and values, e.g value "{ test: 'value'}" becomes `%7B%20test%3A%20'value'%7D`.
@ -1429,7 +1431,7 @@ Set a local/session storage entry to a specific, allowed value. Scriptlet won't
- required, key name to be set.
- required, key value; possible values:
- positive decimal integer `<= 32767`
- one of the predefined constants:
- one of the predefined constants:
- `''`: empty string
- `undefined`, `null`
- `false`, `true`
@ -1437,6 +1439,8 @@ Set a local/session storage entry to a specific, allowed value. Scriptlet won't
- `yes`, `no`
- `accept`, `reject` <sup>[1.57.3b9](https://github.com/gorhill/uBlock/commit/363ad6795c6fdbc42bf9aae468f1cb81bd990ab0)</sup>
- `accepted`, `rejected` <sup>[1.57.3b9](https://github.com/gorhill/uBlock/commit/363ad6795c6fdbc42bf9aae468f1cb81bd990ab0)</sup>
- `allowed`, `denied` <sup>[1.59.1b5](https://github.com/gorhill/uBlock/commit/41c2258f91)</sup>
- all letter values from [`set-cookie`](https://github.com/uBlockOrigin/uBlock-issues/wiki/Resources-Library/_edit#set-cookiejs-) <sup> 1.59.1b5 ([79e10323ad](https://github.com/gorhill/uBlock/commit/79e10323ad))</sup>
- `{}`: empty object
- `[]`: empty array
- `""`