- Open the Fiddlerscript tab in Fiddler
- Fiddlerscript is already pre-filled and contains all the logic you selected. Don't erase the script that is in there. Instead, use the 'Go to' dropdown and go to the 'onBeforeResponse' function.
- Replace the content with the following and edit to your liking:
static function OnBeforeResponse(oSession: Session) {
oSession.utilDecodeResponse();
var body = oSession.GetResponseBodyAsString();
if (!body.Contains("Dog concerto")) {
oSession["ui-hide"] = "true";
}
}
The code above will hide every response from the UI that does not contain the string "Dog concerto".
JScript.NET Reference http://fiddler2.com/r/?msdnjsnet
FiddlerScript Reference http://fiddler2.com/r/?fiddlerscriptcookbook