mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 17:15:49 +03:00
[GH-ISSUE #889] Help - Is it possible to share a single script body between multiple Proxyman scripts? #886
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#886
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @crankygeek on GitHub (May 14, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/889
Originally assigned to: @NghiaTranUIT on GitHub.
Proxyman version? (Ex. Proxyman 1.4.3)
Version 2.25.0 (22500)
macOS Version? (Ex. mac 10.14)
MacBook Pro (16-inch, 2019) macOS 10.15.7
I have a script that I need to run with multiple endpoints with various Matching Rule criteria such as URL, Method, etc. The script body itself is the same regardless of the rules applied.
Is there a way to include an external file (.js, txt, whatever) as the script body on multiple Proxyman scripts? I tried saving it as a .js file and using the import function, but it doesn't appear to be executing the script.
I'm trying to create a suite of scripts that I can provide to my team that they can just toggle on and off as needed, rather than modifying the scripts directly.
Related, but separate, after adding 40 or so scripts, I'm really looking forward to folder organization in the Scripting tool (https://github.com/ProxymanApp/Proxyman/issues/739). I had a thought that perhaps adding other columns to the listing could be helpful. HTTP Method specifically comes to mind (I'm currently including it in the script title). I could also see a column for Response and Request checkboxes could be helpful, though I can see that might be a bigger lift.
Thanks as always!
@NghiaTranUIT commented on GitHub (May 15, 2021):
Hey @crankygeek it's possible to include an external JS file to multiple scripts by using Addons (https://docs.proxyman.io/scripting/write-your-own-addons). Basically, you can write your own addon and reuse it in different scripts as usual 👍
Regarding the Rule Organizer, we're still working on it. The progress is slow since it changes many places and the core logic of the app, but we promise to ship it when it's done 😄
@crankygeek commented on GitHub (Jun 10, 2021):
Got it. Thanks!