顯示具有 Config 標籤的文章。 顯示所有文章
顯示具有 Config 標籤的文章。 顯示所有文章

2017-12-09

Firefox 57

這是新架構的版本 Firefox Quantum,是 Firefox 於 2004 年來迎來最大的改版。通過使用 Rust 編寫的新 CSS 引擎,Firefox 可以並行使用多個 CPU 來縮短加載時間,運用現代電腦、行動裝置的多核心架構,加快網路瀏覽速度,和 Firefox 52 相比,平均速度提昇了2倍。

2014-10-18

Youtube - HTML5

在 Firefox 瀏覽器上使用 YouTube 提供的 HTML5 播放器看影片

2010-03-07

Firefox 選單背景(3.5.8)

在舊文章「Firefox 選單背景」曾提到「-moz-appearance:none;」相關的的用法,由於當時都將所有的 css 碼放在自己寫的一個套件中,運作上沒什麼問題,近來比較忙沒時間弄程式碼,想說把一些自己改變過的 Firefox 外觀 css 碼放在 userChrome.css 中就好,修改也方便,但問題來了。

2009-02-21

讀秒機制

Firefox 擴充套件要安裝時,都會有倒數讀秒機制,秒數控制為security.dialog_enable_delay,進到 about:config 頁面中設定所需的秒數即可。

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;
}

2006-06-14

Firefox 連開

想要開啟多個 Firefox 帳號嗎?沒問題!

建立一個 bat 檔,如 fx_test.bat,內容如下:

@echo off
set MOZ_NO_REMOTE=1
start "" "c:\Program Files\Mozilla Firefox\firefox.exe" -p "測試帳號"

用正常方式啟動 Firefox,此時的 Firefox 是以常用的設定帳號執行。
再執行 fx_test.bat 批次檔,Firefox 將會以 "測試帳號" 執行。
此時就會有兩個 Firefox 帳號同時在跑。

2006-05-10

userContent.css 設定檔

userContent.css - 用來改變網頁的外觀。
這些指令或標籤可能會因 Firefox 版本不同而有所差異。

檔案的位置以 Windows 版來說在
c:\Documents and Settings\[Window 登入帳號]\Application Data\
Mozilla\Firefox\Profiles\8位數亂碼.[Firefox 使用者帳號]\chrome 的目錄下。
這個檔案是普通的文字檔,以系統預設編碼儲存即可,我自己是都存成 UTF-8 格式,方便在兩個不同語系的系統交換使用。

範例:

/* Change cursor for links that open in new window */
a:link[target="_blank"], a:visited[target="_blank"],
a:link[target="_new"], a:visited[target="_new"] { cursor: crosshair; }

/* Change cursor for JavaScript links */
a[href^="javascript:"] { cursor: move; }

/* 擋 Google 生成的 iframe 廣告 */
iframe[name="google_ads_frame"], iframe[id="act_frame"] { display:none !important; }

userChrome.css 設定檔

userChrome.css - 用來改變瀏覽器的外觀。
這些指令或標籤可能會因 Firefox 版本不同而有所差異。

檔案的位置以 Windows 版來說在
c:\Documents and Settings\[Window 登入帳號]\Application Data\
Mozilla\Firefox\Profiles\8位數亂碼.[Firefox 使用者帳號]\chrome 的目錄下。
這個檔案是普通的文字檔,以系統預設編碼儲存即可,我自己是都存成 UTF-8 格式,方便在兩個不同語系的系統交換使用。

範例:

/* userChrome.css */
/* set default namespace to XUL */
/* Do not remove the @namespace line -- it's required for correct functioning */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* 工具列背景圖 */
menubar, toolbox, toolbar, .tabbrowser-tabs {
 background-image: url("background.gif") !important;
 background-color: none !important;
}

/* 取消分頁工具列右方關閉鈕 */
/* 用滑鼠中鍵操作(Firefox 內建)或其它套件提供相關功能操作 */
.tabs-closebutton-box { display:none !important; }

/* 書籤 */
.bookmark-item {
 min-width:50px !important; /* 最小寬度 */
 max-width:150px !important; /* 最大寬度 */
}

/* 蹦現選單背景圖 */
menupopup, popup {
 background-image:url(fx_bg_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;
}

2006-05-09

user.js 設定檔

user.js 設定檔-用來改變 Firefox 各種選項,並在每次升級時保留這些選項設定值。請注意有些參數可能會有適用版本的問題。

檔案的位置以 Windows 版來說在
c:\Documents and Settings\[Window 登入帳號]\Application Data\
Mozilla\Firefox\Profiles\8位數亂碼.[Firefox 使用者帳號]的目錄下,
這個檔案是普通的文字檔,以系統預設編碼儲存即可,我自己是都存成 UTF-8 格式,方便在兩個不同語系的系統交換使用。而這個檔內容的格式為 user_pref(屬性, 屬性值);

一些網路連接參數
network.http.max-connections (48)
network.http.max-connections-per-server (16)
network.http.max-persistent-connections-per-proxy (16)
network.http.max-persistent-connections-per-server (8)
network.http.pipelining (true)
network.http.pipelining.firstrequest (true)
network.http.pipelining.maxrequests (8)
network.http.proxy.pipelining (true)
nglayout.initialpaint.delay (0)
初始繪製延遲。預設值:250ms
content.notify.backoffcount (5)
初始回流(Reflow)最低值
content.notify.interval (750000)
初始回流間隔。預設值:120000
content.max.tokenizing.time (2250000)
回到事件迴圈時中斷描繪的中斷時間。不要設為 0
content.switch.threshold (750000)
高頻或低頻中斷模式切換的最低值。預設值:750000
browser.cache.memory.capacity (5000)
快取設定(預設值 -1、單位為 KB)
browser.cache.disk (32768)
DISK 快取設定
browser.cache.disk.parent_directory (CACHE 路徑)
可指定至 RAMDISK
browser.cache.memory.capacity (16384)
RAM 快取設定(單位為 KB、預設值 -1)
browser.cache.check_doc_frequency (3)
快取檢查頻率
0 = 啟動時檢查, 1 = 每次查閱, 2 = 永不檢查, 3 = 網頁超過時限(default)
browser.startup.homepage
Browser 啟始頁位址。也許是有設定了這個參數,版本升級時並未出現首頁被更改成 Yahoo 的狀況。
browser.sessionhistory.max_total_viewers (3)
好像是分頁快取的最大數量,預設 5。
browser.sessionhistory.cache_subframes (false)
應該是搭配前項設定。
browser.tabs.loadFolderAndReplace (false)
書籤同時開啟時是否替換目前頁面,預設 true。
browser.xul.error_pages.enabled (true)
網頁開啟失敗時顯示失敗網址,預設 false。
browser.tabs.closeButtons (2)
分頁關閉鈕,0 目前分頁, 1 所有分頁(預設), 2 沒有, 3 分頁列最尾端。
feeling lucky (網址列好手氣)
keyword.URL
http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=