這個 plugin 對於網站開發者而言非常實用,可以有效的檢查瀏覽器和伺服器之間的溝通行為。只是作者不知道是不是沒空還是懶得理會 livehttpheaders,一直到現在都沒有更新。既然這樣,那就自己動手吧。參考 livehttpheaders 的 Source Code 這一頁,在自己的開發目錄下執行:(密碼是 guest)
cvs -d :pserver:guest@mozdev.org:/cvs login
cvs -d :pserver:guest@mozdev.org:/cvs co livehttpheaders
我就拿到了一份 livehttpheaders 的原始碼。
看了一下原始碼,似乎沒有什麼特定版本的限制問題,於是就更新了 src/install.js 和 src/install.rdf 這兩個檔案,把版本升級成 0.12.1 並且支援 2.0+:
Index: src/install.js
==============================================================
RCS file: /cvs/livehttpheaders/src/install.js,v
retrieving revision 1.12
diff -u -r1.12 install.js
--- src/install.js 16 Feb 2006 14:40:19 -0000 1.12
+++ src/install.js 1 Nov 2006 23:09:19 -0000
@@ -1,7 +1,7 @@
const X_MSG = "Install Live HTTP Header";
const X_NAME = "/livehttpheaders";
const X_NAME_COM = "/livehttpheaders_com";
-const X_VER = "0.12";
+const X_VER = "0.12.1";
const X_JAR_FILE = "livehttpheaders.jar";
const X_COM_FILE = "nsHeaderInfo.js";
Index: src/install.rdf
==============================================================
RCS file: /cvs/livehttpheaders/src/install.rdf,v
retrieving revision 1.6
diff -u -r1.6 install.rdf
--- src/install.rdf 16 Feb 2006 17:05:00 -0000 1.6
+++ src/install.rdf 1 Nov 2006 23:09:20 -0000
@@ -13,7 +13,7 @@
<Description>
<em>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em>
<em>0.8</em>
- <em>1.5+</em>
+ <em>2.0+</em>
</Description>
</em>
於是乎就產生了非正式版的 (inofficial) livehttpheaders 0.12.1 for Firefox 2.0。
0 意見:
張貼意見