Check that the replace-xhr-request snippet is working as expected.
Test that a string in the XHR request body is replaced with the given replacement value.
abptestpages.org#$#replace-xhr-request trackingId blocked
Test that a regex pattern in the XHR request body is replaced with the given replacement value.
abptestpages.org#$#replace-xhr-request /ad\\d+/ removed
Test that replacement only happens when the needle matches the request body.
abptestpages.org#$#replace-xhr-request userId blocked analytics
Test that a JSONPath expression targets and replaces a nested property in the request body.
abptestpages.org#$#replace-xhr-request 'jsonpath($.ads.enabled)' '"jsonpath-replaced"'
Test that JSONPath append mode pushes a value into an existing array in the request body.
abptestpages.org#$#replace-xhr-request 'jsonpath($.tags)' '"appended-tag"' '' append
Test that JSONPath remove mode deletes every matched element from an array in the request body, leaving the other elements in place.
abptestpages.org#$#replace-xhr-request 'jsonpath($.slots[?(@.ad == 1)])' '' '' remove
Test that a url: token in the needle matches the request URL: the request goes to a URL containing url-token, and its body is rewritten.
abptestpages.org#$#replace-xhr-request sessionToken stripped 'url:url-token'