From 8e2b41561ed7c7cd39c8402fc598edc897b6b21d Mon Sep 17 00:00:00 2001 From: gwarser Date: Sun, 3 May 2020 22:59:29 +0200 Subject: [PATCH] json-prune improvements --- Resources-Library.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Resources-Library.md b/Resources-Library.md index bc85ab6..916bf37 100644 --- a/Resources-Library.md +++ b/Resources-Library.md @@ -138,11 +138,14 @@ Intercepts calls to `JSON.parse`, and if the result of the parsing is an Object, Parameters: - optional, string, a list of space-separated properties to remove - - optional, string, a list of space-separated properties which must be all present for the pruning to occur + - optional, + - string, a list of space-separated properties which must be all present for the pruning to occur; OR + - string/_regular expression_, for logging purposes, matching in stringified JSON payloads (new in [1.26.3b13](https://github.com/gorhill/uBlock/commit/578594bbd7c545b62f18267d640a605f8e07a53a)) A property in a list of properties can be a chain of properties, example: `adpath.url.first`. -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 console. +New in [1.26.3b13](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_. Examples: - `youthhealthmag.com##+js(json-prune, unit_list)`