惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
Vercel News
Vercel News
Microsoft Azure Blog
Microsoft Azure Blog
爱范儿
爱范儿
N
Netflix TechBlog - Medium
Google DeepMind News
Google DeepMind News
H
Help Net Security
罗磊的独立博客
The Cloudflare Blog
J
Java Code Geeks
博客园 - 叶小钗
I
InfoQ
B
Blog
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
月光博客
月光博客
博客园_首页
雷峰网
雷峰网
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
美团技术团队
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美

博客园 - 特洛伊-Micro

Anatomy of a .PPTX File: Unpacking the Open XML Format Fiddler And LINQ Fiddler 过滤 js、css、jpg 等请求 Linq 中 Join 的用法 Open in Windows Terminal as administrator .NET 内存碎片化分析 Android 常见脱壳与反编译工具 使用夜神模拟器调试安卓apk C#实现前向最大匹配、字典树(分词、检索) Task.Run vs Task.Factory.StartNew 时下最流行的5个用于桌面应用程序开发的 JS 框架介绍 What Is A Web Application Firewall? Ubuntu18.04 source.list更新国内源 ubuntu16.04 wordpress建站教程 Ubuntu1604 Install PHP 7.4 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Inside the Storage Engine: Anatomy of a record Inside the Storage Engine: Anatomy of a page MSSQL forensics (1) - MDF fundamentals
fiddlerscriptCustomize Menus
特洛伊-Micro · 2025-10-16 · via 博客园 - 特洛伊-Micro

To customize menus in Fiddler, add rules using FiddlerScript with Global scope. For example:

Add context-menu item to open currently selected URLs using Firefox

    public static ContextAction("Open in Firefox")
    function DoOpenInIE(oSessions: Fiddler.Session[]){ 
      if (null == oSessions){
        MessageBox.Show("Please choose at least 1 session."); return;
      }

      for (var x = 0; x < oSessions.Length; x++){
        System.Diagnostics.Process.Start("firefox.exe", oSessions[x].url);
      }
    }

Add a submenu to the Rules menu and create an option in it

    public static RulesOption("Non-Exclusive-Test", "User-Agent") 
    var m_UANONRad: boolean = true;

To build submenus with mutually exclusive radio options

    public static RulesOption("Spoof Netscape &3.0", "User-Agent", true) 
    var m_NS3: boolean = false; 

    public static RulesOption("Spoof IE &6.0", "User-Agent", true) 
    var m_IE6: boolean = false; 

    public static RulesOption("Spoof nothing", "User-Agent", true) 
    var m_UANONE: boolean = true;

To build a submenu with mutually exclusive radio options, that control a single string variable (Offers a more compact syntax than the previous alternative)

    RulesString("&SubMenuName", true) 
    RulesStringValue(0,"Option1Name", "Option1Value")
    RulesStringValue(1,"Option2Name", "Option2Value")
    RulesStringValue(2,"&Custom...", "%CUSTOM%")
    public static var sTheOptionValue: String = null;

Same as previous, but with a default option pre-selected

    RulesString("&SubMenuName", true) 
    RulesStringValue(0,"Option1Name", "Option1Value")
    RulesStringValue(1,"Option2NameDEFAULT", "DefaultVal", true)
    RulesStringValue(2,"&Custom...", "%CUSTOM%")
    public static var sTheOptionValue: String = null;

Add a Tools menu option that resets the script

    // Force a manual reload of the script file. Resets all
    // RulesOption variables to their defaults.
    public static ToolsAction("Reset Script")
    function DoManualReload(){ 
        FiddlerObject.ReloadScript();
    }

Add a Tools menu option that clears all WinINET/IE cookies and cache files

    public static ToolsAction("Reset IE"){
      FiddlerObject.UI.actClearWinINETCache();
      FiddlerObject.UI.actClearWinINETCookies(); 
    }