Is There A Way For Fiddler Js Formatter Extension To Work Conditionally?
As a JS dev, I very frequently use Fiddler tool. I also use its addon JavaScript Formatter to nicely format minified files for debugging purposes. However, the problem is that the
Solution 1:
For now, you can just disable the "Make JavaScript Pretty" item on the Fiddler Rules menu. When you want to beautify an individual JavaScript file, you can do so by right-clicking the session in the Web Sessions list and choosing Make JavaScript Pretty directly on the session.
Alternatively, you can disable the global option and have FiddlerScript conditionally format the JS File. E.g. inside Rules > Customize Rules > OnPeekAtResponseHeaders()
if (oSession.oResponse["Content-Type"].ToLower().Contains("script")) {
if (!oSession.uriContains("Combinedfilenameorwhatnot")) {
// Note this flag name is soon changing to X-Format-JS
oSession["X-FIDDLER-JS-FORMAT"] = "yes";
}
}
Post a Comment for "Is There A Way For Fiddler Js Formatter Extension To Work Conditionally?"