I got a new machine and I added the code below according to this post. https://www.telerik.com/forums/remove-all-as-a-single-click-button-on-the-toolbar
Now after clicking on the BYE button, it clears the entries but Fiddler stops capturing anything from any site anymore. It only work once once I restart Fiddler.
It used to work on my old machine. I can't figure out what is different here.
static function RemoveAll(s: Object, e: EventArgs)
{
FiddlerApplication.UI.lvSessions.Clear();
}
static function OnBoot() {
try {
for (var c in FiddlerApplication.UI.Controls)
{
if (c.GetType().Name == "ToolStrip")
{
var ts: ToolStrip = c;
var tsi: ToolStripButton = new ToolStripButton("BYE!");
tsi.add_Click(RemoveAll)
ts.Items.Insert(0, tsi);
}
}
} catch(e) { FiddlerApplication.Log.LogString(e); }
}
Now after clicking on the BYE button, it clears the entries but Fiddler stops capturing anything from any site anymore. It only work once once I restart Fiddler.
It used to work on my old machine. I can't figure out what is different here.
static function RemoveAll(s: Object, e: EventArgs)
{
FiddlerApplication.UI.lvSessions.Clear();
}
static function OnBoot() {
try {
for (var c in FiddlerApplication.UI.Controls)
{
if (c.GetType().Name == "ToolStrip")
{
var ts: ToolStrip = c;
var tsi: ToolStripButton = new ToolStripButton("BYE!");
tsi.add_Click(RemoveAll)
ts.Items.Insert(0, tsi);
}
}
} catch(e) { FiddlerApplication.Log.LogString(e); }
}