From 1e830f961cd4b072b243c7e7ee0c5192c4b4cb8c Mon Sep 17 00:00:00 2001 From: garry-ut99 <72945564+garry-ut99@users.noreply.github.com> Date: Wed, 10 Jul 2024 20:35:42 +0000 Subject: [PATCH] Fixed typo (previous commit) --- Resources-Library.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources-Library.md b/Resources-Library.md index 49eea3c..acd7b65 100644 --- a/Resources-Library.md +++ b/Resources-Library.md @@ -887,8 +887,8 @@ can be omitted if the goal is to delete the text which matches the pattern. Examples: - `www.reddit.com##+js(trusted-replace-outbound-text, JSON.stringify)` (logging only) - `www.reddit.com##+js(trusted-replace-outbound-text, JSON.stringify, '/"csrf_token":"[^"]+",/')` -matches and removes: `"csrf_token":"ed5ce21c7d7c95c8662c7844c0f4a4dc",` from the whole JSON payload - - `www.reddit.com##+js(trusted-replace-outbound-text, JSON.stringify, '/(?<="csrf_token":")[^"]+?(?=")/'` or +matches and removes: `"csrf_token":"ed5ce21c7d7c95c8662c7844c0f4a4dc",` from the JSON payload + - `www.reddit.com##+js(trusted-replace-outbound-text, JSON.stringify, '/(?<="csrf_token":")[^"]+?(?=")/')` or `www.reddit.com##+js(trusted-replace-outbound-text, JSON.stringify, '/("csrf_token":")(?:[^"]+?)(")/', /$1$2/)` matches `ed5ce21c7d7c95c8662c7844c0f4a4dc` or any similiar value in `"csrf_token":"..."` and removes it resulting in empty value: `"csrf_token":""` - `www.reddit.com##+js(trusted-replace-outbound-text, JSON.stringify, '/(?<="adblock":{"enabled":)true/', false)`