snippets : Hide static files in Fiddler

Python : Hide static files in FiddlerFiddler is very powerful ! Customise the rules to not be spammed with useless requests. see also : http://www.fiddlertool.com/fiddler/dev/scriptsamples.asp
// Click 'Customize rules'

// add in class Handlers

public static RulesOption("Hide Js,Css,jpg,gif,png files [200, 304]")
var m_HideStatics: boolean = false;

// add in OnBeforeResponse
if (m_HideStatics && (oSession.responseCode == 200 || oSession.responseCode == 304) && ( oSession.url.toLowerCase().indexOf(".js")>-1 || oSession.url.toLowerCase().indexOf(".css")>-1 || oSession.url.toLowerCase().indexOf(".jpg")>-1 ||  oSession.url.toLowerCase().indexOf(".gif")>-1 || oSession.url.toLowerCase().indexOf(".png")>-1))
        {
            oSession["ui-hide"]="true"; 
        }
tags : system, proxy, windows

all tags : python, system, vlc, video, apache, proxy, linux, django, MySQL, .NET, XML, XSL, regexp, bat, windows, bash, git

back to snippets home
site réalisé et hébergé par revolunet © 2009 - informations légales