From 8663e455b6ab02f96ec8759132060e42e5271592 Mon Sep 17 00:00:00 2001 From: MasterKia Date: Sat, 26 Aug 2023 15:11:48 +0330 Subject: [PATCH] Add log to trusted-replace-fetch-response --- Resources-Library.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Resources-Library.md b/Resources-Library.md index 4abacb9..5e9339c 100644 --- a/Resources-Library.md +++ b/Resources-Library.md @@ -540,6 +540,12 @@ Parameters: - `name` is [init option name](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#parameters) - `value` is string or regular expression for matching the value of the option passed to fetch call +Tokens: + - "log": + - `match`: log only when there is a match + - `nomatch`: log only when there is no match + - `all`: log unconditionally + Scriptlet does nothing if response body can't be converted to text. Solves [uBlockOrigin/uBlock-issues#2742](https://github.com/uBlockOrigin/uBlock-issues/issues/2742).