Updated Resources Library (markdown)

D4niloMR 2024-11-16 22:36:16 -03:00
parent 4338634801
commit 0fb139ba85

@ -515,7 +515,7 @@ Version [1.57.0](https://github.com/gorhill/uBlock/commit/e7a0f8c7810c002bc7cec6
- `{-}`: remove a property if part right of `{-}` matches the
inspected item.
When used without parameters, will log current hostname + json payload to the console.
When used without parameters, will log current hostname + json payload to the logger.
New in [1.27.0](https://github.com/gorhill/uBlock/commit/578594bbd7c545b62f18267d640a605f8e07a53a) - second parameter can be used to limit logging to JSON payloads which stringified content match specified string or _regular expression_.
@ -603,7 +603,7 @@ Parameters:
Tokens:
- ~~`log, 1`~~ (deprecated, read about [the new method](#general-purpose-scriptlets) of logging scriptlets)
- `logdoc, 1`: Dumps the whole document being worked on to the console
- `logdoc, 1`: Dumps the whole document being worked on to the logger
Examples:
- `cbs.com##+js(xml-prune, Period[id*="-roll-"][id*="-ad-"], , pubads.g.doubleclick.net/ondemand)`
@ -636,7 +636,7 @@ Also see:
***
### noeval.js [](https://github.com/gorhill/uBlock/blob/a94df7f3b27080ae2dcb3b914ace39c0c294d2f6/src/web_accessible_resources/noeval.js)
Prevent web pages from using _`eval()`_, and report attempts to console. This should not be used as a generic filter due to the fact that it breaks many websites, including those using Cloudflare's DDoS protection.
Prevent web pages from using _`eval()`_, and report attempts to the logger. This should not be used as a generic filter due to the fact that it breaks many websites, including those using Cloudflare's DDoS protection.
Examples:
- `solowarez.org##+js(noeval)`
@ -706,7 +706,7 @@ properties to set on the returned response instance, original response type is u
- `statusText`, supported values: `""`, `"Not Found"`. defaults
to `"OK"` when not overridden. <sup>[1.58.1rc5](https://github.com/gorhill/uBlock/commit/9ce30563613495f5b609211c017aed580847a9cf)</sup>
When used without parameters, the parameters passed to `no-fetch-if` will be logged to the console, as `uBO: fetch([...list of arguments...])`.
When used without parameters, the parameters passed to `no-fetch-if` will be logged to the logger.
Examples:
```adblock
@ -808,8 +808,9 @@ Tokens:
- `condition, pattern`: is a vararg which tells the scriptlet to act
only if `pattern` is found in the argument to overwrite.
Example of usage:
Examples of usage:
- `alliptvlinks.com##+js(trusted-replace-argument, MutationObserver, 0, noopFunc)`
- `scimagojr.com##+js(trusted-replace-argument, document.querySelector, 0, json:"body", condition, .ad-zone)`
***
@ -854,7 +855,7 @@ Parameters:
Use with `/^/` parameter to defuse all calls unconditionally.
When used without parameters, will log calls to _`setInterval()`_ to the console.
When used without parameters, will log calls to _`setInterval()`_ to the logger.
Examples:
- `jpidols.tv##+js(nosiif)`
@ -881,7 +882,7 @@ Parameters:
Use with `/^/` parameter to defuse all calls unconditionally.
When used without parameters, will log calls to _`setTimeout()`_ to the console.
When used without parameters, will log calls to _`setTimeout()`_ to the logger.
<sub>Test page: https://gorhill.github.io/uBlock/tests/scriptlet-injection-filters-1.html</sub>
@ -925,7 +926,7 @@ Parameters:
- `length:min[-max]` to fulfill the response with randomized text with length specified, limited to 500000 characters <sup>[1.54.1b1](https://github.com/gorhill/uBlock/commit/6aeab2a)</sup>
- `war:[name of resource]` to fulfill the response with the content of a [web_accessible_resources](https://github.com/gorhill/uBlock/tree/master/src/web_accessible_resources) resource <sup>[1.51.1b16](https://github.com/gorhill/uBlock/commit/bf591d9)</sup>
When used without parameters, the parameters passed to `no-xhr-if` will be logged to the console, as `uBO: xhr.open(...list of arguments...)`.
When used without parameters, the parameters passed to `no-xhr-if` will be logged to the logger.
Examples:
```adblock