From 0fb139ba8532c76ab10f485d6b3bc820aaeb75de Mon Sep 17 00:00:00 2001
From: D4niloMR <70459964+D4niloMR@users.noreply.github.com>
Date: Sat, 16 Nov 2024 22:36:16 -0300
Subject: [PATCH] Updated Resources Library (markdown)
---
Resources-Library.md | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/Resources-Library.md b/Resources-Library.md
index 9d28e9e..55c953b 100644
--- a/Resources-Library.md
+++ b/Resources-Library.md
@@ -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. [1.58.1rc5](https://github.com/gorhill/uBlock/commit/9ce30563613495f5b609211c017aed580847a9cf)
-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.
Test page: https://gorhill.github.io/uBlock/tests/scriptlet-injection-filters-1.html
@@ -925,7 +926,7 @@ Parameters:
- `length:min[-max]` to fulfill the response with randomized text with length specified, limited to 500000 characters [1.54.1b1](https://github.com/gorhill/uBlock/commit/6aeab2a)
- `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 [1.51.1b16](https://github.com/gorhill/uBlock/commit/bf591d9)
-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