Check that the replace-fetch-request snippet is working as expected.
Test that a string in a fetch request body passed via the init object is replaced with the given replacement value.
abptestpages.org#$#replace-fetch-request trackingId blocked
Test that a string in the body of a Request object passed to fetch is replaced with the given replacement value. The body of a Request can only be read asynchronously, so it is cloned, rewritten and the Request is rebuilt before the request is sent.
abptestpages.org#$#replace-fetch-request trackingId blocked
Test that a regex pattern in the request body is replaced with the given replacement value.
abptestpages.org#$#replace-fetch-request /ad\\d+/ removed
Test that replacement only happens when the needle matches the request body.
abptestpages.org#$#replace-fetch-request userId blocked analytics
Test that a JSONPath expression targets and replaces a nested property in the request body.
abptestpages.org#$#replace-fetch-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-fetch-request 'jsonpath($.tags)' '"appended-tag"' '' append