"aeld" scriptlet description updated further.

garry-ut99 2024-06-26 16:39:42 +00:00
parent 5c1a54b224
commit 63a370d2e9

@ -165,11 +165,11 @@ Examples:
- `tichyseinblick.de##+js(acis, Math, /\}\s*\(.*?\b(self|this|window)\b.*?\)/)`
~~Starting with [1.48.5b4](https://github.com/gorhill/uBlock/commit/edbe96a4010cff59a37c2aa2ec0fb89c48c913f9), you can use the logging abilites.~~ (depracated)
~~Starting with [1.48.5b4](https://github.com/gorhill/uBlock/commit/edbe96a4010cff59a37c2aa2ec0fb89c48c913f9), you can use the logging abilites.~~ (deprecated)
(read about [the new method](#general-purpose-scriptlets) of logging scriptlets)
Tokens:
- ~~`log, 1`: output useful information at the dev console.~~ (deprecated)
- ~~`log, 1`~~: output useful information at the dev console. (deprecated)
- `debug, 1`: break at key locations in the scriptlet.
***
@ -254,12 +254,14 @@ Tokens:
- "runAt": when this parameter is present, uBO will take it into account to possibly defer defusing the event listener <sup>([New in 1.49.3b4](https://github.com/gorhill/uBlock/commit/3c12173dfe4eea7c4b6758c556ed2dd5fcdbdd99))</sup>:
- end: execute scriptlet at `DOMContentLoaded` event ("interactive")
- idle: execute scriptlet at `load` event ("complete")
- "elements": if present, will be used to apply the scriptlet to only elements matching the selector <sup>([New in 1.55.1b1](https://github.com/gorhill/uBlock/commit/060f9d68fc641d08642a42a3903ccc89634735dc))</sup>
- must be a valid CSS selector (also `window` and `document` elements can be used as a selector <sup>([New in 1.58.1b5](https://github.com/gorhill/uBlock/commit/91ee5bdeae6981cc20038b6610ab5c16b58623cf))</sup>)
- "debug": an integer value telling when to break into the debugger, useful to inspect the debugger's call stack.
- 1: break into the debugger when both type and pattern match, so effectively when defusing is taking place.
- 2: break into the debugger when either type or pattern matches.
<details>
<summary> ● "log": (depracated)</summary>
<summary> ● "log": (deprecated)</summary>
▬▬► SPOILER START ◄▬▬
@ -291,9 +293,10 @@ The fourth filter will log _all_ calls to `addEventListener()` **without defusin
Examples:
- `jpvhub.com##+js(aeld, click, popMagic, runAt, idle)`
- `subkade.ir##+js(aeld, click, return"undefined", elements, a.indirect)`
- `wikipedia.org##+js(aeld)`
The second filter will log _all_ calls to `addEventListener()` **without defusing any of them**
The third filter will log _all_ calls to `addEventListener()` **without defusing any of them**
***