Саш*_*ных 7 firefox firefox-extensions statusbar firefox-quantum
我在 Firefox 中使用了许多插件按钮。
我不知道如何在 Firefox Quantum 中为这些按钮添加额外的栏。
我需要添加新栏,而不是修改现有的菜单和书签栏。
请不要提供:
这应该可以通过userChrome.css
. 我发现这个 Github 上有很多 Firefox 的自定义可用:https://github.com/Aris-t2/CustomCSSforFx
其中最引人注目的是addonbar_extra_bookmarks_toolbar_below_navbar_fx65.css
。如果将其代码添加到userChrome.css
文件中,它将在导航栏下方添加另一个栏。
/* create an empty space below navigation toolbar */
/* Firefox Quantum userChrome.css tweaks ************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/
#main-window:not([customizing="true"]) #nav-bar {
padding-bottom: 26px !important;
}
/* reduce maximum width of location bar and search bar on navigation toolbar */
#main-window:not([customizing="true"]) #nav-bar :-moz-any(#urlbar-container, #urlbar, #search-container, #searchbar) {
min-width: 50px !important;
}
/* move bookmarks to empty space below navigation toolbar, if on navigation toolbar */
#main-window:not([customizing="true"]) #nav-bar #personal-bookmarks {
position: absolute !important;
bottom: 1px !important;
min-width: 0 !important;
width: auto !important;
max-width: 100vw !important;
}
/* reduce size of bookmarks 'more bookmarks' menu chevron and remove its background color on navigation toolbar */
#nav-bar #personal-bookmarks #PlacesChevron .toolbarbutton-icon {
min-width: 0px !important;
min-height: 0px !important;
width: 16px !important;
height: 16px !important;
padding: 0 !important;
margin: 0 !important;
background: unset !important;
box-shadow: unset !important;
}
/* set minimum height for bookmarks, when on navigation toolbar */
#nav-bar #personal-bookmarks toolbarbutton.bookmark-item:not(.subviewbutton) {
min-height: 24px !important;
}
/* adjustments */
#nav-bar #personal-bookmarks {
min-width: 40px !important;
width: auto !important;
max-width: 50vw !important;
}
Run Code Online (Sandbox Code Playgroud)
现在,您必须使用 Firefox 的自定义选项将书签工具栏项目移至导航栏中。然后,您可以仅使用该栏来添加附加组件,只需将其向下拖动即可。
我在这个浏览器上只有一个附加组件,所以这不是一个很好的测试,但我回家后可以测试更多。
归档时间: |
|
查看次数: |
6273 次 |
最近记录: |