Created
September 28, 2021 18:34
-
-
Save ericlaw1979/7ecc66ec28a9e0e236fc9dc17bccb760 to your computer and use it in GitHub Desktop.
Enable Fiddler to load NetLog files via command line directive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static function OnBoot() { | |
var s = Environment.GetCommandLineArgs(); | |
for (var i=1; i<s.Length; i++){ | |
if (s[i].StartsWith("-netlog:")){ | |
// FiddlerObject.log("Command line told us to import Netlog " + s[i].Substring(8)); | |
var oImportOptions = FiddlerObject.createDictionary(); | |
oImportOptions.Add("Filename", s[i].Substring(8)); | |
FiddlerApplication.DoImport("NetLog JSON", true, oImportOptions, null); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://twitter.com/ericlaw/status/1442927713874956292
lol. So, it turns out the reason that this is so poorly documented is that there's no reason to do this anymore.
ProfferFormat takes an optional third parameter specifying which file extensions an importer handles.
I've updated the importer.