為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How can I move my toolbars up and down?

  • 2 回覆
  • 38 有這個問題
  • 1 次檢視
  • 最近回覆由 killme2

more options

I just upgraded to firefox 4 and I hate it already. I want to move my google toolbar to the bottom of the toolbars but I can't find a way to do that. Is it possible? If not I'll go back to 3.6 because I hate this. Also, I have a customized theme thing in my toolbar area and it's all funky like the toolbars are making the image not line up.

I just upgraded to firefox 4 and I hate it already. I want to move my google toolbar to the bottom of the toolbars but I can't find a way to do that. Is it possible? If not I'll go back to 3.6 because I hate this. Also, I have a customized theme thing in my toolbar area and it's all funky like the toolbars are making the image not line up.

所有回覆 (2)

more options

A possible solution now is to use code in userChrome.css
The order of toolbars can be changed by setting the value of the -moz-ordinal-group property of that toolbar. You can open the Firefox > Web Developer (or Tools) > Error Console and click the Clear button to clear the display. Copy and paste this code in the Code field and click Evaluate. That will display a list of the currently install toolbar with their -moz-ordinal-group setting. Toolbars added by an extension have a value of 50 and making one smaller makes it appears as the first and making it larger appear as the last in the list.

EDIT:
Note that current Firefox (24 and later) releases no longer have the error Console, but have the Browser Console (Firefox/Tools > Web Developer) that has a command line where you can paste the code and press the Enter key to run the code. If the command line is hidden then set the devtools.chrome.enabled preference to true in about:config, or set the "Enable chrome debugging" option in the developer tool settings.

var Cc = Components.classes, Ci = Components.interfaces;
var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
var mw = wm.getMostRecentWindow("navigator:browser");
var doc = mw.document;
var nav = doc.getElementById('navigator-toolbox');
var elm = nav.getElementsByTagName('toolbar');
var i, inf='',moz='-moz-box-ordinal-group';
for(i=0;E=elm[i];i++){ inf+='#'+E.id+' { '+moz+': '+doc.defaultView.getComputedStyle(E,"").getPropertyValue(moz)+' }\n'; }
inf;

Only add the modified line(s) to userChrome.css below the @namespace line.

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

EDIT: Forgot to write that you need to add the !important; flag to override the current property value.

{ -moz-box-ordinal-group: 30 !important; }

由 cor-el 於 修改

more options

I just upgraded to Firefox 4.0 and edited my "extensions.ini" file in order to move the Google Toolbar to the bottom.

Navigate to Firefox Profiles folder: C:\Users\[username]\AppData\Roaming\Mozilla\Firefox\Profiles\[something].default\

Open the file extensions.ini

You'll see lines that look like this:

Extension0=C:\Users\[username]\AppData\Roaming\Mozilla\Firefox\Profiles\[something].default\extensions\autopager@mozilla.org

Extension1=C:\Users\[username]\AppData\Roaming\Mozilla\Firefox\Profiles\[something].default\extensions\elemhidehelper@adblockplus.org

Extension14=C:\Users\[username]\AppData\Roaming\Mozilla\Firefox\Profiles\[something].default\extensions\{CB56AAF9-68C8-41bd-8E5C-7B53232CF7B9}

Extension15=C:\Users\[username]\AppData\Roaming\Mozilla\Firefox\Profiles\[something].default\extensions\{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

Each line identifies the location of the extension, but not necessarily the name. To identify an extension navigate to it's listed location and open the Chrome folder to see its name.

When you find the one you want to move use copy and paste to move it up or down the list and then renumber the lines accordingly. In Firefox 4.0 the list is loaded in order (as opposed to 3.0 and earlier when it was reversed). So if you want the Google Toolbar to be at the bottom it should be the last on the list.