为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I move my toolbars up and down?

  • 2 个回答
  • 38 人有此问题
  • 2 次查看
  • 最后回复者为 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.