import System;
import System.Windows.Forms;
import Fiddler;
// INTRODUCTION
//
// Well, hello there!
//
// Don't be scared! :-)
//
// 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 runs, 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.
// The best way to edit this file is to install the FiddlerScript Editor, part of
// the free SyntaxEditing addons. Get it here: http://fiddler2.com/r/?SYNTAXVIEWINSTALL
// GLOBALIZATION NOTE: Save this file using UTF-8 Encoding.
// JScript.NET Reference
// http://fiddler2.com/r/?msdnjsnet
//
// FiddlerScript Reference
// http://fiddler2.com/r/?fiddlerscriptcookbook
class Handlers
{
// *****************
//
// This is the Handlers class. Pretty much everything you ever add to FiddlerScript
// belongs right inside here, or inside one of the already-existing functions below.
//
// *****************
// The following snippet demonstrates a custom-bound column for the Web Sessions list.
// See http://fiddler2.com/r/?fiddlercolumns for more info
/*
public static BindUIColumn("Method", 60)
function FillMethodColumn(oS: Session): String {
return oS.RequestMethod;
}
*/
// The following snippet demonstrates how to create a custom tab that shows simple text
/*
public BindUITab("Flags")
static function FlagsReport(arrSess: Session[]):String {
var oSB: System.Text.StringBuilder = new System.Text.StringBuilder();
for (var i:int = 0; i<arrSess.Length; i++)
{
oSB.AppendLine("SESSION FLAGS");
oSB.AppendFormat("{0}: {1}\n", arrSess[i].id, arrSess[i].fullUrl);
for(var sFlag in arrSess[i].oFlags)
{
oSB.AppendFormat("\t{0}:\t\t{1}\n", sFlag.Key, sFlag.Value);
}
}
return oSB.ToString();
}
*/
// You can create a custom menu like so:
/*
QuickLinkMenu("&Links")
QuickLinkItem("IE GeoLoc TestDrive", "http://ie.microsoft.com/testdrive/HTML5/Geolocation/Default.html")
QuickLinkItem("FiddlerCore", "http://fiddler2.com/fiddlercore")
public static function DoLinksMenu(sText: String, sAction: String)
{
Utilities.LaunchHyperlink(sAction);
}
*/
public static RulesOption("隐藏 304s")
BindPref("fiddlerscript.rules.Hide304s")
var m_Hide304s: boolean = false;
// Cause Fiddler to override the Accept-Language header with one of the defined values
public static RulesOption("请求日文内容")
var m_Japanese: boolean = false;
// Automatic Authentication
public static RulesOption("自动验证")
BindPref("fiddlerscript.rules.AutoAuth")
var m_AutoAuth: boolean = false;
// Cause Fiddler to override the User-Agent header with one of the defined values
// The page http://browserscope2.org/browse?category=selectors&ua=Mobile%20Safari is a good place to find updated versions of these
RulesString("&用户代理", true)
BindPref("fiddlerscript.ephemeral.UserAgentString")
RulesStringValue(0,"Netscape &3", "Mozilla/3.0 (Win95; I)")
RulesStringValue(1,"WinPhone8.1", "Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 520) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537")
RulesStringValue(2,"&Safari5 (Win7)", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1")
RulesStringValue(3,"Safari9 (Mac)", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56")
RulesStringValue(4,"iPad", "Mozilla/5.0 (iPad; CPU OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12F5027d Safari/600.1.4")
RulesStringValue(5,"iPhone6", "Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12F70 Safari/600.1.4")
RulesStringValue(6,"IE &6 (XPSP2)", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)")
RulesStringValue(7,"IE &7 (Vista)", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1)")
RulesStringValue(8,"IE 8 (Win2k3 x64)", "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0)")
RulesStringValue(9,"IE &8 (Win7)", "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)")
RulesStringValue(10,"IE 9 (Win7)", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)")
RulesStringValue(11,"IE 10 (Win8)", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)")
RulesStringValue(12,"IE 11 (Surface2)", "Mozilla/5.0 (Windows NT 6.3; ARM; Trident/7.0; Touch; rv:11.0) like Gecko")
RulesStringValue(13,"IE 11 (Win8.1)", "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko")
RulesStringValue(14,"Edge (Win10)", "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.11082")
RulesStringValue(15,"&Opera", "Opera/9.80 (Windows NT 6.2; WOW64) Presto/2.12.388 Version/12.17")
RulesStringValue(16,"&Firefox 3.6", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.7) Gecko/20100625 Firefox/3.6.7")
RulesStringValue(17,"&Firefox 43", "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0")
RulesStringValue(18,"&Firefox Phone", "Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0")
RulesStringValue(19,"&Firefox (Mac)", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0")
RulesStringValue(20,"Chrome (Win)", "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.48 Safari/537.36")
RulesStringValue(21,"Chrome (Android)", "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.78 Mobile Safari/537.36")
RulesStringValue(22,"ChromeBook", "Mozilla/5.0 (X11; CrOS x86_64 6680.52.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.74 Safari/537.36")
RulesStringValue(23,"GoogleBot Crawler", "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")
RulesStringValue(24,"Kindle Fire (Silk)", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us; Silk/1.0.22.79_10013310) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 Silk-Accelerated=true")
RulesStringValue(25,"自定义...", "%CUSTOM%")
public static var sUA: String = null;
// Cause Fiddler to delay HTTP traffic to simulate typical 56k modem conditions
public static RulesOption("模拟调制解调器速度", "性能")
var m_SimulateModem: boolean = false;
// Removes HTTP-caching related headers and specifies "no-cache" on requests and responses
public static RulesOption("禁用缓存", "性能")
var m_DisableCaching: boolean = false;
public static RulesOption("总是缓存新的", "性能")
var m_AlwaysFresh: boolean = false;
// Force a manual reload of the script file. Resets all
// RulesOption variables to their defaults.
public static ToolsAction("重置脚本")
function DoManualReload() {
FiddlerObject.ReloadScript();
}
public static ContextAction("解码选定会话")
function DoRemoveEncoding(oS
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
Fiddler Web Debugger.zip (95个子文件)
EnableLoopback.exe 96KB
Fiddler.exe 3.19MB
Fiddler.pdb 1.32MB
saz.ico 11KB
LoadScript.wav 5KB
makecert.exe 54KB
ResponseTemplates
404_Plain.dat 652B
401_AuthDigest.dat 823B
200_SimpleHTML.dat 150B
303_RedirectWithGet.dat 175B
200_TransPixel.dat 173B
407_ProxyAuthBasic.dat 719B
502_Unreachable.dat 661B
200_FiddlerGif.dat 433B
204_NoContent.dat 106B
401_AuthBasic.dat 707B
304_NotModified.dat 108B
403_AuthDeny.dat 631B
302_Redirect.dat 165B
307_RedirectWithMethod.dat 183B
证书插件
BCMakeCert.dll 473KB
CertMaker.dll 36KB
Countdown.wav 1KB
Fiddler ScriptEditor 编辑器绿化工具.exe 780KB
Xceed.Compression.Formats.v5.4.dll 76KB
Xceed.Zip.v5.4.dll 308KB
TrustCert.exe 25KB
Newtonsoft.Json.dll 647KB
Tools
dwebp.exe 227KB
Brotli.exe 732KB
Zopfli.exe 162KB
PngDistill.pdb 22KB
PngDistill.exe 51KB
JXR2PNG.exe.config 269B
JXR2PNG.exe 14KB
GA.Analytics.Monitor.pdb 94KB
Xceed.Compression.v5.4.dll 264KB
Screenshot.wav 13KB
Scripts
Timeline.pdb 36KB
QWhale.Syntax.dll 272KB
RulesTab2.dll 38KB
Timeline.dll 38KB
FiddlerCheck.dll 279KB
FiddlerOrchestra.Protocol.dll 23KB
ImageBloat.dll 19KB
Gallery.dll 38KB
FiddlerOrchestra.Addon.pdb 66KB
FiddlerOrchestra.Addon.dll 56KB
QWhale.Syntax.Parsers.dll 1.14MB
netstandard.dll 96KB
FiddlerOrchestra.Utilities.dll 19KB
JSFormat.dll 25KB
QWhale.Editor.dll 908KB
ToE.dll 14KB
SampleRules.js 22KB
QWhale.Common.dll 200KB
FiddlerOrchestra.Connection.dll 1.68MB
SimpleFilter.pdb 154KB
SampleRules.cs 24KB
Compressibility.dll 30KB
AustralianImages.dll 6KB
Differ.dll 44KB
SimpleFilter.dll 152KB
ForceCPU.exe 19KB
Be.Windows.Forms.HexBox.dll 60KB
GA.Analytics.Monitor.dll 52KB
ScriptEditor
QWhale.Syntax.dll 272KB
FSE2.exe 53KB
QWhale.Syntax.Parsers.dll 1.14MB
FSE2.exe.config 106B
GA.Analytics.Monitor.pdb 94KB
QWhale.Editor.dll 904KB
QWhale.Common.dll 200KB
GA.Analytics.Monitor.dll 54KB
Analytics.dll 32KB
Analytics.pdb 48KB
ImportExport
VSWebTestExport.dll 49KB
VSWebTestExport.pdb 98KB
BasicFormats.dll 116KB
BasicFormats.pdb 180KB
ExecAction.exe 19KB
TrustCert.pdb 14KB
SetupHelper 22KB
LoadScriptError.wav 1KB
Inspectors
QWhale.Syntax.dll 272KB
QWhale.Syntax.Schemes.dll 284KB
QWhale.Editor.dll 908KB
QWhale.Common.dll 200KB
SyntaxView.dll 77KB
Standard.dll 269KB
Analytics.dll 32KB
Fiddler.exe.config 252B
Xceed.FileSystem.v5.4.dll 128KB
App.ico 25KB
Analytics.pdb 48KB
共 95 条
- 1
fengchao2016
- 粉丝: 158
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0