0
if (oSession.HostnameIs("www.youtube.com") && oSession.oResponse.headers.ExistsAndContains("Content-Type","text/html")){

                oSession.utilDecodeResponse();
                oSession.utilReplaceInResponse("old string","new string");
            }

请告诉我我是否正确使用了上述脚本。

基本上,我如何替换/隐藏dolphin搜索查询中的单词?我不希望客户端浏览器(我的 Google Chrome)以任何方式看到它。

示例:httpdolphin ://www.youtube.com/results? search_query= &page=3。

如果 Fiddler 无法做到这一点,那么您推荐什么其他应用程序?

谢谢

4

1 回答 1

2

可以替换内部 url 中的任何内容OnBeforeResponse,但这样做不会有任何用处,因为此时 URL 已经发送到服务器,所以这么晚更改它对 Fiddler 之外的任何内容都没有明显影响。

如果要更改 URL,请在OnBeforeRequest. 在您的 FiddlerScript 中,查找urlreplace处理程序以了解其工作原理。

于 2014-09-20T11:59:03.460 回答