Do You PHP はてブロ

Do You PHPはてなからはてブロに移動しました

firefox2.0でLiveHTTPHeaders

f:id:shimooka:20061025094640p:image

相変わらず新しいバージョンがリリースされないLiveHTTPHeadersですが、「インストール時の対象バージョンを書き換えたらうまくいくかも」と思ってググってみると、やはり同じ事を考える人はたくさんいるようで、1.5+用の0.12の設定ファイルをちょっとだけ書き換えることで使えるようです。先日エントリしたBe Stiqを作ってらっしゃるRAKUTOさんのblogでした :-)


ブログにするほどのネタではない。
Live Http Headers プラグインが2.0に対応するバージョンが配布されていないので、手動でmaxVersionを書き換えてインストールする必要がある。

いえいえ。充分なネタですよ :-)
ということで、Linux版firefox2.0で試してみました。まずは、LiveHTTPHeadersのページからバージョン0.12をダウンロードし、以下の要領でinstall.rdfを編集して再度パッケージし直します。

$ file livehttpheaders-0.12.xpi
livehttpheaders-0.12.xpi: Zip archive data, at least v1.0 to extract
$ mkdir temp
$ unzip livehttpheaders-0.12.xpi -d temp/
Archive:  livehttpheaders-0.12.xpi
   creating: temp/chrome/
  inflating: temp/chrome/livehttpheaders.jar
   creating: temp/components/
  inflating: temp/components/nsHeaderInfo.js
   creating: temp/defaults/
  inflating: temp/defaults/LiveHTTPHeaders.ico
  inflating: temp/defaults/LiveHTTPHeaders.xpm
   creating: temp/defaults/preferences/
  inflating: temp/install.js
  inflating: temp/install.rdf
  inflating: temp/TODO.txt
$ cd temp/
$ cp -p install.rdf install.rdf.org
$ vi install.rdf
$ diff install.rdf install.rdf.org
16c16
<         <em:maxVersion>2.*</em:maxVersion>
---
>         <em:maxVersion>1.5+</em:maxVersion>
$ zip -u ../livehttpheaders-0.12.xpi install.rdf
updating: install.rdf (deflated 67%)
$ 

できたlivehttpheaders-0.12.xpiをインストールし、Firefoxを再起動すると使えるようになります。今のところ、問題なく動作しています。