如果您用的系統(tǒng)是 Windows XP 并且想用默認(rèn)的菜單類型, 把下面的代碼加到 userChrome.css 文件:
/* Make menus XP style */
menupopup, popup {
border: 1px solid ThreeDShadow !important;
-moz-border-left-colors: ThreeDShadow !important;
-moz-border-top-colors: ThreeDShadow !important;
-moz-border-right-colors: ThreeDShadow !important;
-moz-border-bottom-colors: ThreeDShadow !important;
padding: 1px !important;
background-color: Menu !important;
}
menubar > menu {
border: 1px solid transparent !important;
padding: 2px 5px 2px 7px !important;
margin: 0 !important;
}
menubar > menu[_moz-menuactive="true"] {
background-color : Highlight !important;
color: HighlightText !important;
}
不幸的是,目前默認(rèn)的菜單類型是 Windows XP 和原先舊版本 Windows3D 外觀的折衷,如果您想要 Windows 經(jīng)典的外觀,把下面的代碼加到 userChrome.css 文件:
/* Windows Classic (9x/Me/2000) style Menus */
menupopup, popup {
border: 2px solid !important;
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
padding: 1px !important;
}
menubar > menu[disabled="true"] {
border: 1px solid transparent !important;
}
menubar > menu[_moz-menuactive="true"] {
border-top: 1px solid ThreeDHighlight !important;
border-right: 1px solid ThreeDShadow !important;
border-bottom: 1px solid ThreeDShadow !important;
border-left: 1px solid ThreeDHighlight !important;
background-color: transparent !important;
color: MenuText !important;
}
menubar > menu[_moz-menuactive="true"][open="true"] {
border-top: 1px solid ThreeDShadow !important;
border-right: 1px solid ThreeDHighlight !important;
border-bottom: 1px solid ThreeDHighlight !important;
border-left: 1px solid ThreeDShadow !important;
}
除了改變主題以外,您頁可以用自己的圖片做工具欄的背景。 把下面的代碼加到 userChrome.css 文件:
/* Use a background image for the toolbars:
(Substitute your image file for background.gif) */
menubar, toolbox, toolbar, .tabbrowser-tabs {
background-image: url("background.gif") !important;
background-color: none !important;
}
可以把圖片放在 userChrome.css 文件一樣的目錄下. 圖片格式可以是Mozilla Firefox 支持的任意格式。
為了使動(dòng)態(tài)的標(biāo)簽頁和已經(jīng)打開的標(biāo)簽頁更易區(qū)分開(通過顏色)來把下面的代碼加到, userChrome.css 文件:
/* Change color of active tab */
tab[selected="true"] {
background-color: rgb(222,218,210) !important;
color: black !important;
}
/* Change color of normal tabs */
tab {
background-color: rgb(200,196,188) !important;
color: gray !important;
}
如果您不想在動(dòng)態(tài)標(biāo)簽頁上使用粗體,加下面的代碼到 userChrome.css 文件:
/* Make the active tab easier to distinguish: */
tab[selected="true"] {
font-weight: normal !important;
}
您可以把“關(guān)閉”按鈕從標(biāo)簽欄刪除,把下面代碼加到 userChrome.css :
/* Remove the close button on the tab bar */
.tabs-closebutton {
display: none !important;
}
仍然可以關(guān)閉標(biāo)簽頁,右擊標(biāo)簽頁選擇“關(guān)閉標(biāo)簽”或按 Ctrl+W
有些人為了節(jié)省水平空間喜歡把工具欄象菜單一樣豎立的放置, 把下面代碼加到r userChrome.css :
/* Remove the Go and Help menus */
menu[label="Go"],
menu[label="Help"] { display: none !important; }
Mozilla Firefox 默認(rèn)沒有使用自己圖標(biāo)而是 Mozilla 圖標(biāo),在一些系統(tǒng)里系統(tǒng)圖標(biāo)被使用,如果您想使用自己圖標(biāo),遵循下面的方法
In addition to the main window, you can also change the icon on the Bookmark Manager and JavaScript Console. The icon names are bookmark-window.[filetype] and jsconsoleWindow.[filetype], respectively.
為了在右邊顯示側(cè)欄而不是在左邊, 把下面代碼加到 userChrome.css 文件:
/* Place the sidebar on the right edge of the window */
window > hbox {
direction:rtl;
}
window > hbox > * {
direction:ltr;
}
搜索條默認(rèn)相對(duì)比較小,您可以自己以特定數(shù)量的像素指定它的寬度,下面代碼加到 userChrome.css 文件:
/* Make the Search box flex wider */
#search-container {
-moz-box-flex: 400 !important;
}
如果有外部的程序要在默認(rèn)的瀏覽器里打開網(wǎng)頁,Mozilla Firefox用一個(gè)幾經(jīng)存在的窗口打開它,這意味瀏覽器可能從一個(gè)您正在瀏覽的頁面跳轉(zhuǎn),如果不希望這發(fā)生,加下面的代碼到 user.js 文件:
// Stop reusing active windows:
user_pref("advanced.system.supportDDEExec", false);
想打開新標(biāo)簽頁而不是窗口怎么辦那?What about new tabs instead of windows then? If you prefer tabs instead of windows, 您必須安裝Tabbrowser Extensions, 它是一個(gè)強(qiáng)有力的標(biāo)簽式瀏覽的擴(kuò)展,安裝完后按下面的指令來做
標(biāo)簽式瀏覽單擊 設(shè)置.
現(xiàn)在外部的程序打開鏈接時(shí)就會(huì)在新的標(biāo)簽頁打開。
當(dāng)只有一個(gè)標(biāo)簽頁的時(shí)候標(biāo)簽欄就會(huì)隱藏. 為了使標(biāo)簽欄一直顯示, 加下面的代碼到r user.js 文件:
// Disable tab bar autohide feature:
user_pref("browser.tabs.autoHide", false);
注意當(dāng)只有一個(gè)標(biāo)簽頁時(shí)您仍然可以通過單擊“關(guān)閉” X 隱藏標(biāo)簽欄
Mozilla Firefox 默認(rèn)有一個(gè)內(nèi)建的阻止彈出窗口的過濾器,但當(dāng)用target="_blank"或無效的target="_new"打開新窗口時(shí)它停止網(wǎng)頁,為了在同一窗口打開鏈接,加下面的代碼到 f user.js 文件:
// disable target="_blank" (open in same window):
user_pref("browser.block.target_new_window", true);
當(dāng)這一特性打開時(shí), 它會(huì)縮小圖像以使比圖像小的窗口可以容下圖像. 為了關(guān)閉這以功能加下面的代碼到 user.js 文件:
// Turn off Automatic Image Resizing:
user_pref("browser.enable_automatic_image_resizing", false);
當(dāng)聯(lián)結(jié)失敗時(shí)Mozilla Firefox 默認(rèn)不是象IE一樣顯示錯(cuò)誤頁,而示顯示惱人的錯(cuò)誤信息,要顯示錯(cuò)誤頁而不是錯(cuò)誤信息,加下面的代碼到 user.js 文件:
// Instead of annoying error dialog messages, display pages:
user_pref("browser.xul.error_pages.enabled", true);
.
下載文件時(shí), Mozilla Firefox 默認(rèn)顯示進(jìn)度窗口,如果同時(shí)下載多個(gè)文件,這些窗口會(huì)弄亂您的桌面的,而下載管理器則不會(huì),加下面的代碼到 user.js 文件起用下載管理器:
// Instead of download progress windows, use the Sidebar:
user_pref("browser.download.openSidebar", true);
user_pref("browser.download.useProgressDialogs", false);
Find As You Type功能, Mozilla 新介紹的一個(gè)新功能, 有一些適合您需要的隱藏功能, 加下面的代碼到ruser.js 文件:
// Find As You Type Configuration:
// Set this pref to false to disable Find As You Type:
user_pref("accessibility.typeaheadfind", true);
// If you set this pret to true, typing can automatically start Find As You Type.
// If false (default), you must hit / (find text) or ‘ (find links) before your search.
user_pref("accessibility.typeaheadfind.autostart", true);
// Set this pref to false if you want Find As You Type to search normal text too:
user_pref("accessibility.typeaheadfind.linksonly", true);
// Set this pref to true if you require that the link starts with the entered text:
user_pref("accessibility.typeaheadfind.startlinksonly", false);
// This is the time in milliseconds for the Find As You Type to stop watching for keystrokes:
user_pref("accessibility.typeaheadfind.timeout", 3000);
要了解更多關(guān)于 Find As You Type is功能, 查看 documentation.
Mozilla Firefox 0.6 默認(rèn)有一個(gè)平滑滾動(dòng)的功能,要打開或關(guān)閉這一特性,加下面的代碼到 Scrollinguser.js 文件:
// Smooth Scrolling (true = on, false = off):
user_pref("general.smoothScroll", true);
Mozilla Firefox 有一些選項(xiàng)來決定那些scripts可以在窗口使用,這些選項(xiàng)在“工具”》選項(xiàng)》網(wǎng)頁特效》高級(jí),這而的選項(xiàng)沒有包含全部的特效,還有其它的一些特效可以使用:
// More DOM/JavaScript options
// Make sure all pop-up windows are resizable:
user_pref("dom.disable_window_open_feature.resizable", true);
// Make sure all pop-up windows are minimizable:
user_pref("dom.disable_window_open_feature.minimizable", true);
// Always display the menu in pop-up windows:
user_pref("dom.disable_window_open_feature.menubar", true);
// Always display the Navigation Toolbar in pop-up windows:
user_pref("dom.disable_window_open_feature.location", true);
如果您正在使用 Netscape 6/7 或 Mozilla, 您可以 使 Mozilla Firefox 使用這些書簽. 所有的書簽保存在一個(gè)名為 bookmarks.html
的文件里,例如,如果您想在 Firefox 里使用Netscape 7的書簽,加下面的代碼到 user.js 文件:
// Specify which bookmarks file to use:
user_pref("browser.bookmarks.file", "C:\\Path To Netscape Profile\\bookmarks.html");
Remember to use two backslashes for the path separators if you‘re using Windows, e.g. C:\\Path\\bookmarks.html
instead of C:\Path\bookmarks.html
.
默認(rèn)情況下在搜索欄輸入關(guān)鍵字按回車,將執(zhí)行一個(gè)B "I‘m Feeling Lucky" 搜索,如果您想使用標(biāo)準(zhǔn)的搜索模式,加下面的代碼到, user.js 文件:
// Change to normal Google search:
user_pref("keyword.URL", "http://google.com/search?btnG=Google+Search&q=");
當(dāng)然可以通過改變特定字符串來改變搜索引擎,默認(rèn)的是: "http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=".
您可以禁止書簽圖標(biāo)的顯示加下面的代碼到 user.js 文件:
// Disable Bookmark Icons
user_pref("browser.chrome.site_icons", false);
user_pref("browser.chrome.favicons", false);
當(dāng)您單擊 throbber, 瀏覽器會(huì)聯(lián)向 www.mozilla.org. 這以網(wǎng)址可以改變,加下面的代碼到 user.js 文件:
// Click on throbber to go to Mozilla Firefox Help:
user_pref("browser.throbber.url", "http://texturizer.net/firefox/");
Mozilla Firefox 允許您輸入的地址不出現(xiàn)在地址欄的下拉菜單里面,這可以保護(hù)您的隱私,
Andrew Mutch 寫了如何作到這些的材料. 見這兒.
網(wǎng)站上的廣告是惱人的,下面的代碼可以阻止大部分的廣告,由于這代碼較長放到其它頁了看,
您也許不想看到上面閃爍的元素. 為了阻止它, 加下面的代碼到 user.js 文件:
// Put an end to blinking text!
user_pref("browser.blink_allowed", false);
一些網(wǎng)站用卷動(dòng)的標(biāo)簽 . 如果您覺的它沒用的話加下面代碼來禁止它,加到 userContent.css 文件:
/* Stop those <marquee> tags! */
marquee {
-moz-binding : none !important;
display : block;
height : auto !important;
}
許多網(wǎng)站用框架來顯示目錄,有時(shí)候這些框架太小了. 為了使這些框架大小可變, 加到 user.js 文件:
// Force frames to be resizable
user_pref("layout.frames.force_resizability", true);
注意有時(shí)候它會(huì)使您的頁面變的比較滑稽:)
/* Change cursor for links that open in new window */
:link[target="_blank"], :visited[target="_blank"], :link[target="_new"], :visited[target="_new"] {
cursor: crosshair;
}
這個(gè)提示將改變鼠標(biāo)當(dāng)經(jīng)過鏈接時(shí),執(zhí)行一個(gè) JavaScript 命令. 加到 userContent.css 文件:
/* Change cursor for JavaScript links */
a[href^="javascript:"] {
cursor: move;
}
一些網(wǎng)站提供多國語言的版本,您可以按優(yōu)先順序選擇語言,要改變優(yōu)先順序,您不得不知道各國語言的語言代碼如瑞典語代碼是sv,下面的例子是user.js里的一個(gè)。:
// Change language to Swedish (default is "en, en-us")
user_pref("intl.accept_languages", "sv, en, en-us");
注意: 選項(xiàng)窗口中有一個(gè)request 域用于存放此選項(xiàng)。
當(dāng)按下Ctrl 健, 您可以選擇表格單元. J您頁可以選擇多個(gè)表格單元 一旦選好后您可以象文本一樣復(fù)制和粘貼您選擇的內(nèi)容 。
Mozilla Firefox 默認(rèn)不顯示頁面在 250毫秒, 因?yàn)樗诘却龜?shù)據(jù). 如果把下面的代碼加到 user.js 文件, Mozilla Firefox 立即顯示網(wǎng)頁, 即使沒有完成的數(shù)據(jù) 它的缺點(diǎn)是在一個(gè)慢的機(jī)器上由于“回流”使得整個(gè)頁面的裝載時(shí)間長了。
// This one makes a huge difference. Last value in milliseconds (default is 250)
user_pref("nglayout.initialpaint.delay", 0);
Pipelining 是一個(gè)實(shí)驗(yàn)中的特性, 它設(shè)計(jì)來提高網(wǎng)頁裝載效率, 不幸的是不是所有的網(wǎng)站和代理都支持它, servers and想試用它的話加下面的代碼到 user.js 文件:
// Enable pipelining:
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 100);
為了指定緩存保存在那一個(gè)目錄, 加代碼到 user.js 文件:
// Path to Cache folder:
user_pref("browser.cache.disk.parent_directory","C:\\Path To Cache");
記得用2個(gè)斜杠做路徑的分割符, i如果您使用 Windows, e.g. C:\\Path To Cache
而不是 C:\Path\Path To Cache
.
一般地, Mozilla Firefox 根據(jù)有效內(nèi)存的多少來判斷緩存的用處,為了指定特定數(shù)量的內(nèi)存緩存,加代碼到 . user.js 文件:
// Specify the amount of memory cache:
// -1 = determine dynamically (default), 0 = none, n = memory capacity in kilobytes
user_pref("browser.cache.memory.capacity", 4096);
完全禁止內(nèi)存緩存,用下面的代碼,
// Disable memory cache:
user_pref("browser.cache.memory.enable", false);
許多首選項(xiàng)沒有在選項(xiàng)窗口體現(xiàn). 下面的鏈接顯示了原始的首選項(xiàng)窗口, chrome://communicator/content/pref/pref.xul.
Note that many of the preferences in this window will have no effect in Mozilla Firefox, such as the Quick Launch option. Also, this window will most probably be removed completely in future versions of Mozilla Firefox.
Andrew Mutch 曾經(jīng)寫過關(guān)于如何修改firefox使它運(yùn)行在 kiosk 模式的向?qū)?
聯(lián)系客服