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

為什麼分頁位置都不能調? (#76版本已解決 分頁欄可置底)
https://forum.moztw.org/viewtopic.php?f=2&t=48741
1 頁 (共 1 頁)

發表人:  gzc780706 [ 2020-05-21, 01:57 ]
文章主題 :  為什麼分頁位置都不能調? (#76版本已解決 分頁欄可置底)

早期版本分頁位置都可以調整
到中後期開始只能透過額外的設定去調整
再到現在幾乎無法改變
如今手殘更新最新版本之前調整過的又打回原形
原代碼又無法作用了....

發表人:  gzc780706 [ 2020-05-22, 01:28 ]
文章主題 :  Re: 為什麼分頁位置都不能調? (已解決)

感覺好像自問自答 - -
總之找了兩天總算把分頁欄位置置底的問題解決了
以下可以直接參考網址複製貼上
https://support.mozilla.org/en-US/kb/fo ... ow-url-bar

流程為
1.開啟about:config然後把toolkit.legacyUserProfileCustomizations.stylesheets設置為 true
因為69版本開始不再自動尋找讀取userChrome.css / userContent.css,因此要手動開啟↑
2.在"C:\Users\使用者名稱\AppData\Roaming\Mozilla\Firefox\Profiles\隨機代碼資料夾\chrome"中創建 userChrome.css 檔案
3.然後在userChrome.css 輸入:

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

/* TABS: bottom - Firefox 65 and newer */

#navigator-toolbox toolbar:not(#nav-bar):not(#toolbar-menubar) {
-moz-box-ordinal-group: 10 !important;
}

#TabsToolbar {
-moz-box-ordinal-group: 1000 !important;
display: block !important;
position: absolute !important;
bottom: 0 !important;
width: 100vw !important;
}

#tabbrowser-tabs {
width: 100vw !important;
}

*|*:root:not([chromehidden*="toolbar"]) #navigator-toolbox {
padding-bottom: calc(var(--tab-min-height) + 1px) !important; /*adjust*/
}

/* Firefox 65-73 */
*|*:root[tabsintitlebar]:not([inFullscreen="true"]):not([sizemode="maximized"])
#toolbar-menubar[autohide="true"] ~ #TabsToolbar{
bottom: var(--tab-min-height) !important;
padding-top: calc(var(--tab-min-height) - 20px) !important; /*adjust*/
}

/* TABS: height */
*|*:root {
--tab-toolbar-navbar-overlap: 0px !important;
--tab-min-height: 30px !important; /*adjust or omit to use density*/
}

*|*:root #tabbrowser-tabs {
--tab-min-width: 80px !important; /*adjust or omit to use default*/
}

#TabsToolbar {
height: var(--tab-min-height) !important;
margin-bottom: 1px !important;
box-shadow: ThreeDShadow 0 -1px inset, -moz-dialog 0 1px !important; /*omit*/
background-color: var(--toolbar-bgcolor) !important;
color: var(--toolbar-color) !important;
}

/* indicators - hide */
.private-browsing-indicator {display: none !important;}
.accessibility-indicator {display: none !important;}

/* window controls hide*/
#TabsToolbar #window-controls {display: none !important;}

/* caption buttons - hide */
*|*:root[tabsintitlebar]:not([inFullscreen="true"])
#toolbar-menubar[autohide="true"] ~ #TabsToolbar
.titlebar-buttonbox-container {display: none !important;}

4.以上代碼針對65以及以上版本
5.本人版本為76.0.1(64 位元) 測試沒問題

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