From c5e155c74e680d7b8708e539022213e679f98cb0 Mon Sep 17 00:00:00 2001 From: gwarser Date: Wed, 25 Nov 2020 22:21:21 +0100 Subject: [PATCH] Update json-prune link and mention Response.json() support --- Resources-Library.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources-Library.md b/Resources-Library.md index aeb9cfc..e3a692f 100644 --- a/Resources-Library.md +++ b/Resources-Library.md @@ -170,11 +170,11 @@ Examples: *** -### json-prune.js [↪](https://github.com/gorhill/uBlock/blob/f433932d8602230539d3408e9946d4d70b40306c/assets/resources/scriptlets.js#L251) +### json-prune.js [↪](https://github.com/gorhill/uBlock/blob/13f92756befaa9a8d3ba1615bd7abc7075758c67/assets/resources/scriptlets.js#L365) New in [1.23.0](https://github.com/gorhill/uBlock/commit/2fd86a66fcc2665e5672cc5862e24b3782ee7504) -Intercepts calls to `JSON.parse`, and if the result of the parsing is an Object, it will remove specified properties from the result before returning to the caller. +Intercepts calls to `JSON.parse()` and `Response.json()`. If the result of the parsing is an Object, it will remove specified properties from the result before returning to the caller. Parameters: - optional, string, a list of space-separated properties to remove