2008-08-14

討論區2

說實在的,真的不知道台灣區的 Firefox 推廣者都以什麼樣的心態來推廣?

討論區都沒辦法好好的維持,今天又被它擺了一道,看文章看到一半就掛了,也許是 Firefox 的 BUG,可是沒有人會相信。

也許以後用 IE 來上討論區會比較好?(真是畸形)

2008-08-05

bookmarks

在之前的 Firefox 版本裡,它的書籤是儲存在一個叫「bookmarks.html」檔案裡頭,這個檔案會放在你的 profile 底下,預設路徑是「%appdata%\Mozilla\Firefox\Profiles\xxxxxxxx.default」。

到了 Firefox 3 之後,因為整個書籤系統改用資料庫重寫,使得它的書籤不再存放在 bookmarks.html 了,就連書籤自動備份檔也變成「.json」格式而不是以往的「.html」格式。這對大部分的人來說或許沒有影響,可是對一些需要讀取 Firefox 書籤的軟體(例如 Launchy 可以搜尋 Firefox 的書籤內容)來說影響就大了,因為書籤變成資料庫格式,使得這些需要讀取書籤的軟體無法解讀。

還好 Firefox 有個隱藏設定可以自動在關閉程式的時候將書籤匯出到 bookmarks.html。
1. 在網址列輸入「about:config」
2. 在上方的「篩選條件」文字框輸入「browser.bookmarks.autoExportHTML」
3. 將這筆設定設為「true」
以後關閉 Firefox 的時候,書籤就會自動匯出到 bookmarks.html 檔了,當然這個檔案會放在你的 profile 目錄下,就跟以前一樣。

書籤回復步驟:
1. 將帳號所屬目錄下的 bookmarkbackups 目錄及 places.sqlite 檔案移到其它位置。
2. 編輯 bookmarks.html,將其中的 Most Visited 及 Recently Bookmarked 刪除。
3. 啟動 Firefox,系統將自動依據 bookmarks.html 重建相關檔案。
註:Recent Tags 應該也可刪除?沒在用 tag 所以不清楚。

2008-08-02

討論區

forum.moztw.org 是台灣區的 Firefox 討論區之一,但卻只在非假日時間開放,並不是說有限定時間,只是這個討論區在假日時掛點率超過 75%(本人使用經驗),而多數情況是登入後停止回應,而系統卻已記錄了你的登入,換句話說,除非你有過人的記憶力,否則這次的登入將會因系統有記錄,而把未讀文章標示為已閱讀,下次系統正常時,你的登入將不會看到這些該讀但沒有讀的文章有所標示。

這種情況以前也反應過,大致的問題是討論區有掛載 Google 的分析程式,那是造成無回應的主因,從連線監視軟體可以看出,連線一直停在 google 那邊,怪的是直接連 google 的服務時,也有這些東西,但都很快就完成,不會影響正常的瀏覽,只有 forum.moztw.org 會這樣,而且都發生在假日。

2008-07-29

Firefox 選單背景

之前使用這樣一段 CSS code 來改變選單背景,

menupopup, popup {
background-image:url("fx_popup.jpg") !important;
background-position:left top !important;
background-repeat:no-repeat !important;
background-attachment:scroll !important;
}
menupopup>menu[_moz-menuactive="true"], menupopup>menuitem[_moz-menuactive="true"],
popup>menu[_moz-menuactive="true"], popup>menuitem[_moz-menuactive="true"] {
background-color:#000 !important;
color:#fff !important;
}

不過到了 3.0 版好像失效了,因為 WinXP 中沒有效果,而 Win2K 下有效果,多方詢問終於有了解答,「由於 XP 以後,以及 Linux 都有自己的主題風格,Firefox 會引用 OS 的風格,所以 CSS 對於 OS 物件無效, 您可以加入 -moz-appearance:none; 告訴 Firefox 不要使用 OS 風格。

感謝來自 Racklin's 阿土伯程式大觀園的協助。
詳細資料 http://developer.mozilla.org/en/docs/CSS:-moz-appearance

以下是比較完整的寫法:

popup:not(#autoscroller), menupopup {
background-image:url("chrome://fxtools/skin/fx_popup.jpg") !important;
background-color:#fff !important;
background-position:center center !important;
background-repeat:no-repeat !important;
background-attachment:scroll !important;
color:#000 !important;
-moz-appearance:none;
}
menubar > menu, menupopup > menu, popup > menu, menuitem,
toolbarbutton, popup:not(#autoscroller) {
color:#000 !important;
}
#contentAreaContextMenu menuitem[disabled="true"],
#contentAreaContextMenu menuitem[disabled="true"] + menuseparator,
menuitem[disabled="true"] {
color:#aaa !important;
}
menupopup>menu[_moz-menuactive="true"], menupopup>menuitem[_moz-menuactive="true"],
popup>menu[_moz-menuactive="true"], popup>menuitem[_moz-menuactive="true"] {
background-color:#000 !important;
color:#fff !important;
}

2008-07-17

Fixed in Firefox 3.0.1

Firefox 3 釋出功能與安全性更新版。

Release Date:
July 16, 2008
Security Update:
  • MFSA 2008-36 Crash with malformed GIF file on Mac OS X
  • MFSA 2008-35 Command-line URLs launch multiple tabs when Firefox not running
  • MFSA 2008-34 Remote code execution by overflowing CSS reference counter
  • Fixed several stability issues.
  • Fixed an issue where the phishing and malware database did not update on first launch.
  • Under certain circumstances, Firefox 3.0 did not properly save the SSL certificate exceptions list.
  • Updated the internal Public Suffix list.
  • In certain cases, installing Firefox 2 in the same directory in which Firefox 3 has been installed resulted in Firefox 2 being unstable. This issue was fixed as part of Firefox 2.0.0.15.
  • Fixed an issue where, when printing a selected region of content from the middle of a page, some of the output was missing (bug 433373).
  • Fixed a Linux issues where, for users on a PPP connection (dialup or DSL) Firefox always started in "Offline" mode (bug 424626).
20080717 Update:
不知道該不該向 ISP 反應,Firefox 又開始抓住連線不放了,名氣一大,開發人員可能有點飄飄然,下載首日的 BUG 遲了一個月才修正,也許下次得等上一季了。
20080718 Update:
對 Unicode 的支援度變差了,在使用 Google 搜尋時,結果列表常出現一堆看不懂的方形符號,以往 2.0.0.14 版不會有這樣的狀況,目前還不知道要如何解決。
20080718 Update:
連線問題更嚴重了,目前已無法登入 Hotmail,不清楚是 Microsoft 還是 Firefox 那一邊出問題。
20080719 Update:
這版本跟智邦特別不合,若不是連線要很久才能連上,就是直接說無法連線。
20080729 Update:
用圖片當作選單背景,在 Win2K 的系統下可以,在 WinXP 下不行,不知跟 WinXP 的 SP3 有沒有關係?