Created
January 23, 2019 16:09
-
-
Save ericlaw1979/213532c83bd75cab4cb5b2f8ed63cadb to your computer and use it in GitHub Desktop.
Hide Fiddler requests where the overall elapsed time was under 1 second.
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
// | |
// Click Rules > Customize Rules. Uncomment the *OnDone* function and update it with | |
// the code inside the function body below. | |
// | |
// This function executes after Fiddler finishes processing a Session, regardless | |
// of whether it succeeded or failed. Note that this typically runs AFTER the last | |
// update of the Web Sessions UI listitem, so you must manually refresh the Session's | |
// UI if you intend to change it. | |
static function OnDone(oSession: Session) { | |
// Hide any Session that took under 1 second. | |
if ((oSession.Timers.ClientDoneResponse - oSession.Timers.ClientBeginRequest).TotalMilliseconds < 1000) { | |
// oSession["ui-backcolor"] = "green"; | |
oSession["ui-hide"] = "fast!"; | |
oSession.RefreshUI(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you’re trying to do an “After the fact” filter instead of one that runs at processing time, you’d do it like this, just inside the
Handlers
class