mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fixed typo (previous commit)
parent
296e68c505
commit
1e830f961c
1 changed files with 2 additions and 2 deletions
|
|
@ -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)`
|
||||
|
|
|
|||
Loading…
Reference in a new issue