Fiddler进入Rules > Customize Rules…,定位到OnBeforeResponse函数进行修改:
static function OnBeforeResponse(oSession: Session) {
if (m_Hide304s && oSession.responseCode == 304) {
oSession["ui-hide"] = "true";
}
//在原有基础上添加以下代码
//FiddlerObject.log("打条log日志");
FiddlerObject.log(oSession.GetRequestBodyAsString());
if (oSession.GetRequestBodyAsString().IndexOf("关键字符串")!= -1){
oSession["ui-color"] = "red"; //标红含字符串的记录
}
else {
oSession["ui-hide"]=true; //隐藏不含字符串的记录
}
}