愚蠢的问题,但谷歌搜索这根本没有结果。
如何在Fiddler 2中重置客户规则文件?出于好奇/实验,我一直在搞乱它,但现在我想重置规则。
答案 0 :(得分:13)
CustomRules.js文件因此开始:
// INTRODUCTION
// This is the FiddlerScript Rules file, which creates some of the menu commands and
// other features of Fiddler. You can edit this file to modify or add new commands.
//
// The original version of this file is named SampleRules.js and it is in the
// \Program Files\Fiddler\ folder. When Fiddler first starts, it creates a copy named
// CustomRules.js inside your \Documents\Fiddler2\Scripts folder.
//
......然后它注意到:
// If you make a mistake in editing this file, simply delete the CustomRules.js file
// and restart Fiddler. A fresh copy of the default rules will be created from the
// original sample rules file.
顺便提一下,如果您使用Google reset customrules.js
,可以在#3结果中找到这些说明,该结果指向Fiddler2.com上的官方文档。
您还可以添加工具菜单选项以重置脚本。在customrules.js中添加这些。
// Force a manual reload of the script file. Resets all
// RulesOption variables to their defaults.
public static ToolsAction("Reset Script")
function DoManualReload(){
FiddlerObject.ReloadScript();
}
可以找到脚本示例here。