diff --git a/Resources-Library.md b/Resources-Library.md index 81e42e6..dfd71e0 100644 --- a/Resources-Library.md +++ b/Resources-Library.md @@ -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 ([New in 1.49.3b4](https://github.com/gorhill/uBlock/commit/3c12173dfe4eea7c4b6758c556ed2dd5fcdbdd99)): - 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 ([New in 1.55.1b1](https://github.com/gorhill/uBlock/commit/060f9d68fc641d08642a42a3903ccc89634735dc)) + - must be a valid CSS selector (also `window` and `document` elements can be used as a selector ([New in 1.58.1b5](https://github.com/gorhill/uBlock/commit/91ee5bdeae6981cc20038b6610ab5c16b58623cf))) - "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.
- ● "log": (depracated) + ● "log": (deprecated) ▬▬► 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** ***