MozTW 討論區
https://forum.moztw.org/

Firefox4 分頁列如何置底(升級後 userChrome.css 設定失效)
https://forum.moztw.org/viewtopic.php?f=2&t=32439
1 頁 (共 1 頁)

發表人:  007 [ 2011-05-06, 10:22 ]
文章主題 :  Firefox4 分頁列如何置底(升級後 userChrome.css 設定失效)

我比較習慣KKMan or PCMan將分頁至底的設定
原先Firefox3可以在
userChrome.css 寫入
#content > tabbox {-moz-box-direction: reverse;}
便可達成

但是升級成4後,就失效了,找不到在哪可以設定,不知哪為好心人可以教一下 Thx

發表人:  shyangs [ 2011-05-09, 20:22 ]
文章主題 :  Re: Firefox4 分頁列如何置底(升級後 userChrome.css 設定失效)

(本篇提供 Fx4 實現方法,新版本Fx29,請見討論串Firefox 29 導航列, 分頁列置底,舊版本Fx3~3.6,請見:能否移動工具列位置?)
 

    分頁列置底
     
    • 方法一: 安裝 Tab Mix Plus (TMP)
      TMP 選項 -> 外觀 -> 分頁標籤列 -> 分頁標籤位置: 底部
      圖檔
     
     
    • 方法二: 安裝 uc/userChromeJS, 使用底下腳本
      代碼:
      // Ref: TMP 0.3.8.5
      // License: Mozilla Public License, version 1.1
      // Tabs Toolbar On the Bottom
      (function() {
          function setTabsOnTopCmd (aVisible) {
            // hide/show TabsOnTop menu & menuseparator
            let toggleTabsOnTop = document.getElementsByAttribute("command", "cmd_ToggleTabsOnTop");
            for (let i = 0; i < toggleTabsOnTop.length; i++) {
              let cmd = toggleTabsOnTop[i];
              cmd.hidden = !aVisible;
              if (cmd.nextSibling && cmd.nextSibling.localName == "menuseparator")
                cmd.nextSibling.hidden = !aVisible;
            }
          }
          var bottomToolbox = document.getElementById("tabmix-bottom-toolbox");
          if (!bottomToolbox) {
            bottomToolbox = document.createElement("toolbox");
            bottomToolbox.setAttribute("id", "tabmix-bottom-toolbox");
            //if (navigator.oscpu == "Windows NT 6.1")
            //  bottomToolbox.setAttribute("tabmix_aero", true);
            let browser = document.getElementById("browser");
            browser.parentNode.insertBefore(bottomToolbox, browser.nextSibling);
          }
          setTabsOnTopCmd(false);
          if (TabsOnTop.enabled) {
            //gNavToolbox.tabmix_tabsontop = true;
            TabsOnTop.enabled = false;
          }
          bottomToolbox.appendChild(document.getElementById("TabsToolbar"));
      })();
     
     
     
    分頁列與附加元件列合併
    • 方法一: 安裝 Tab Utilities
      Tab Utilities 選項 -> 外觀 -> 分頁列 -> 總是顯示分頁工具列: 底端
      圖檔
     
     
    • 方法二: 安裝 uc/userChromeJS, 使用底下腳本
      代碼:
      // Ref: Tab Utilities 1.0.5
      // License: Mozilla Public License, version 1.1
      // tabs toolbar merge with addon-bar
      (function() {
        var addonBar = document.getElementById("addon-bar");
        var tabsToolbar = document.getElementById("TabsToolbar");
        if (addonBar && tabsToolbar) {
          let ids = tabsToolbar.currentSet.split(",");
          let start = ids.indexOf("tabbrowser-tabs");
          if (start > -1) {
            let end = ids.indexOf("tabs-closebutton");
            let currentSet = ids.splice(start, Math.max(end - start + 1, 1)).join(",");
            tabsToolbar.currentSet = ids.join(",");
            tabsToolbar.setAttribute("currentset", tabsToolbar.currentSet);

            addonBar.collapsed = false;
            addonBar.currentSet = currentSet + "," + addonBar.currentSet;
            addonBar.setAttribute("currentset", addonBar.currentSet);
          }
        }
      })();
 
 
 
備註:
  1. 上述四個方法請勿同時使用,如:安裝 TMP 又安裝 Tab Utilities
  2. 不想用套件的話,參照《能否移動工具列位置?》書籤工具列置底 方法三,搭配本文自行研究發揮。


附加檔案:
檔案註釋: 分頁列 併入 附加元件列 by Tab Utilities
tabs toolbar merge with addon-bar

TU_TabsToolbarOnTheBottom.png [30.73 KiB]
被下載 2473 次
檔案註釋: 分頁列 置底 by TMP
tabs toolbar on the bottom

TMP_TabsToolbarOnTheBottom.png [32.77 KiB]
被下載 4427 次

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/