Edit and remove scripts#
The sidebar lets you select, switch off, and remove a script, and its phase label tells you which side of the exchange it fires on.
The sidebar in the Scripting sub-tab shows every script with a toggle next to its name. The count next to Scripts at the top shows how many scripts are active.
Select a script#
Select a script to open it in the editor on the right. The selection persists across tab switches and recordings, so a return to scripting opens the last script you edited.
Switch a script on or off#
Each row has a switch on the left. Toggle it to enable or disable the script without a delete. Disabled scripts do not run. The proxy skips their onRequest and onResponse functions even when the script's conditions match.
What the phase label means#
Each row shows a label on the right with the active phases.
Req: only the request phase.Res: only the response phase.Req + Res: both phases.
If the script has neither phase, the label reads No phase. This is a misconfiguration. Edit the settings to fix it.
Remove a script#
Each row has a trash icon. Select it to get a confirmation prompt, then confirm to remove the script. There is no undo.
When a script fires#
A script fires only during a live recording on the same tab. Static HAR files do not run scripts. A change of capture source does not affect which scripts run.