Skip to content

Instantly share code, notes, and snippets.

@weberjacob
Last active February 3, 2023 15:43
Show Gist options
  • Save weberjacob/72d243ae6b749916f5ce937a0f22f0d9 to your computer and use it in GitHub Desktop.
Save weberjacob/72d243ae6b749916f5ce937a0f22f0d9 to your computer and use it in GitHub Desktop.
Firefox favicon / pinned tab size for all tabs by default on open. Add a userChrome.css file within a chrome directory in your profile and restart FF to launch.
/*
* Do not remove the @namespace line, it's required
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
/* General Rules */
#tabbrowser-tabs .arrowscrollbox-scrollbox {
overflow: visible;
display: block;
}
.tabbrowser-tab,
.tab-background {
height: var(--tab-min-height);
}
/* Set width of individual tabs */
/* .tabbrowser-tab:not([pinned]) */
#tabbrowser-tabs .tabbrowser-tab {
max-width: 40px !important;
min-width: 40px !important;
width: 40px !important;
}
/* Add a tabs width of space between pinned and non pinned tabs as well as a border left for the non pinned tab */
.tabbrowser-tab[pinned] + .tabbrowser-tab:not([pinned]) {
margin-left: 40px !important;
border-left: 1px solid #808080 !important;
}
/* Hide unnecessary buttons and the blank areas at left and right */
/* Hide individual close tab button */
/* Hide new tab button */
#tabbrowser-tabs .scrollbutton-up,
#tabbrowser-tabs .scrollbutton-down,
#alltabs-button,
.tabbrowser-tab:not([fadein]),
/* .titlebar-placeholder[type="pre-tabs"], */
.titlebar-placeholder[type="post-tabs"],
#tabbrowser-tabs .tabbrowser-tab .tab-close-button,
#TabsToolbar #new-tab-button,
.tabs-newtab-button {
display: none;
}
/* Ensure a border between tabs */
.tabbrowser-tab:not(:last-of-type) {
border-right: 1px solid #808080 !important;
}
@namespace url(http://www.w3.org/1999/xhtml);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment