[GH-ISSUE #1134] Feature Request - highlighting of script-modified request/responses #1128

Open
opened 2026-03-03 19:48:36 +03:00 by kerem · 1 comment
Owner

Originally created by @jbb1003 on GitHub (Feb 2, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1134

Originally assigned to: @NghiaTranUIT on GitHub.

Proxyman version? (Ex. Proxyman 1.4.3)

2.35.4

macOS Version? (Ex. mac 10.14)

12.0.1

Steps to reproduce

Run a request - and see the response appear in the log
Run the same request, using a script to modify the response - the response looks exactly the same, visually (except for having been modified)

Expected behavior

It would be nice if - perhaps optionally - scripts also had the affect of somehow colourising the log to indicate that things have been modified. I don't see anyway to tell that a script has matched and modified a request short of pressing cmd-opt-I and looking at the script console log.

Screenshots (optional)

Originally created by @jbb1003 on GitHub (Feb 2, 2022). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1134 Originally assigned to: @NghiaTranUIT on GitHub. ### Proxyman version? (Ex. Proxyman 1.4.3) 2.35.4 ### macOS Version? (Ex. mac 10.14) 12.0.1 ### Steps to reproduce Run a request - and see the response appear in the log Run the same request, using a script to modify the response - the response looks exactly the same, visually (except for having been modified) ### Expected behavior It would be nice if - perhaps optionally - scripts also had the affect of somehow colourising the log to indicate that things have been modified. I don't see anyway to tell that a script has matched and modified a request short of pressing cmd-opt-I and looking at the script console log. ### Screenshots (optional)
Author
Owner

@NghiaTranUIT commented on GitHub (Feb 3, 2022):

To determine which request is modified by a script, you can simply open a Summary Tab -> Debugging Tool.

Screen_Shot_2022-02-03_at_09_22_51


For better visual, you can write JS code to highlight or add a comment too to particular request/script too 👍

function onRequest(context, url, request) {
    request.comment = "It's a Request"
    request.color = "red" // red, blue, yellow, purple, gray, green
    return request
}

function onResponse(context, url, request, response) {
    response.comment = "It's a Response"
    response.color = "yellow" // red, blue, yellow, purple, gray, green
    return response
}

Screen_Shot_2021-08-13_at_09_27_36

ref: https://docs.proxyman.io/scripting/snippet-code#comment-and-highlight-with-color

<!-- gh-comment-id:1028544061 --> @NghiaTranUIT commented on GitHub (Feb 3, 2022): To determine which request is modified by a script, you can simply open a Summary Tab -> Debugging Tool. ![Screen_Shot_2022-02-03_at_09_22_51](https://user-images.githubusercontent.com/5878421/152270995-b6e0fb96-6185-4d76-9988-5951b6fce465.jpg) ---------------- For better visual, you can write JS code to highlight or add a comment too to particular request/script too 👍 ```js function onRequest(context, url, request) { request.comment = "It's a Request" request.color = "red" // red, blue, yellow, purple, gray, green return request } function onResponse(context, url, request, response) { response.comment = "It's a Response" response.color = "yellow" // red, blue, yellow, purple, gray, green return response } ``` ![Screen_Shot_2021-08-13_at_09_27_36](https://user-images.githubusercontent.com/5878421/152271208-1aa80e01-cc00-42b7-b249-3fe4bd23d71a.png) ref: https://docs.proxyman.io/scripting/snippet-code#comment-and-highlight-with-color
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1128
No description provided.