修改 CustomRules文件里面Handlers:
示例代码:

    static function OnBeforeResponse(oSession: Session) {
if (m_Hide304s && oSession.responseCode == 304) {
oSession["ui-hide"] = "true";
}
if (oSession.url.Contains("rop/runningMan/toRun.do")) {
oSession.utilDecodeResponse();
oSession.utilReplaceInResponse("</body>", "<script type=\"text/javascript\" src=\"http://shipengliang.com/test.js\"></script></body>");
}
}

Related Posts: Fiddler根据请求地址header插入js示例 :