1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-01 02:02:29 +02:00

Add log to trusted-replace-fetch-response

MasterKia 2023-08-26 15:11:48 +03:30
parent 69b2ee75c1
commit 8663e455b6

@ -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).