1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-01 02:02:29 +02:00

Update acis (logging)

MasterKia 2023-08-16 19:36:04 +03:30
parent 3bfe9de7d0
commit f00dc79afe

@ -157,16 +157,9 @@ Examples:
Starting with [1.48.5b4](https://github.com/gorhill/uBlock/commit/edbe96a4010cff59a37c2aa2ec0fb89c48c913f9), you can use the logging abilites.
To enable logging, use the JSON approach to pass parameters to `acs` scriptlet. Example:
```adb
example.com##+js(acs, { "target": "document.oncontextmenu", "log": true })
```
Whereas "target", "needle", and "context" correspond to their respective positional argument. Using JSON form to pass parameters allows to specify extra paramters to facilitate debugging of that scriptlet:
- `"log": true` => output useful information at the dev console.
- `"debug": true` => break at key locations in the scriptlet.
Tokens:
- `log, 1`: output useful information at the dev console.
- `debug, 1`: break at key locations in the scriptlet.
***