How to share and maintain multiple Fiddler scripts?

I have many custom and independent FiddlerScript extensions that I want to maintain and share with colleges.

Currently (and that's the only way I know) all those script parts are located in the %USERPROFILE%DocumentsFiddler2ScriptsCustomRules.js file, I don't know how to create one script file per functionality. Additionally, most extensions are spread across the script file, because they require code in different event handlers (like eg OnBeforeRequest ), and define configurable settings like checkboxes. This makes it really hard to identify all parts belonging to a single extension.

While I could copy the whole CustomRules.js file, it would be annoying for all recipients of the file to re-include all custom additions each the time document changes.

Is there any way to either create a separate Script file or encapsulate the extensions in closed blocks (ie attach to the events like OnBeforeRequest outside of the static function OnBeforeRequest(oSession: Session) functions)?

The solution should work with the vanilla Fiddler, without any modifications to Fiddler itself. (Re-)creating all required extensions as .NET extensions is not a working solution for me as well.


Currently, no, there's no way to do this, although folks ask for this sort of functionality from time-to-time, and capabilities of this nature could conceivably be added at some point in the future. For now the expectation is that functionality useful enough to be shared is useful enough to be compiled into a Fiddler Extension assembly.

You might find this extension: https://github.com/vcsjones/FiddlerScriptCSharp interesting, as it offers the sort of capabilities you describe, using C# as the scripting language instead of JScript.NET.

链接地址: http://www.djcxy.com/p/30318.html

上一篇: 我如何使用python

下一篇: 如何共享和维护多个Fiddler脚本?