Skip to content

Firefox 102.13.0 modify response body not working ? #256

@pascal1055

Description

@pascal1055

Hi; I'm trying out your add on and cannot manage to make the 'modify response body' work. I've set a rule to do a redirect to make sure the URL to use was correct and that works. Same with modify response header, works fine. But when using modify response body, nothing happens. Using a simple function as the example with:
return val.replace('[text present in the response]', 'updated value');
[text present in the response] is of course some text that is present in the page I want to modify the response body of. However, it does not change anything either on screen or in the source of the page.

I tried with a web page that returns simple HTML and JSON, no changes is applied.
I even tried with google.com to replace "English" (link of languages under the search bar) with "TEST" and nothing.
Can you provide a quick example to see what I am doing wrong here ?
Also: what is the "details" parameters of the custom function ? I tried to alter the 'val' and 'details' in my custom function, nothing is returned.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions