修复Firefox的Live HTTP headers无法replay的问题

2015-03-18 21:38
Firefox Live HTTP Headers 插件
摘要:Firefox 的 Live HTTP headers 插件 replay 失效了,记录一下修改 jar 包里 LiveHTTPReplay.js 文件来修复的方法。

在firfox地址栏输入:about:support,然后进入二配置文件夹 Live HTTP headers 找到Live HTTP headers插件的目录,我的在~/.mozilla/firefox/df0j3s9g.default/extensions/{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}/chrome 可以看到有livehttpheaders.jar这样一个文件,用解压工具打开,进入content目录,找到LiveHTTPReplay.js,解压此文件,并修改。 大概在32行左右,修改:

document.getElementById("livehttpheaders.replay.headers").value = args[4];

替换为:

document.getElementById("livehttpheaders.replay.headers").value = args[4] + "If-Modified-Since: *\n";

修改完成后,继续用解压工具打开刚才的livehttpheaders.jar,将修改后的LiveHTTPReplay.js替换livehttpheaders.jar里的LiveHTTPReplay.js 完成后重启Firfox,replay功能就可以使用了。