Skip to content

Instantly share code, notes, and snippets.

@april
Last active November 20, 2020 11:41
Show Gist options
  • Save april/a224499dfe29d843ee39f76e6c6166c6 to your computer and use it in GitHub Desktop.
Save april/a224499dfe29d843ee39f76e6c6166c6 to your computer and use it in GitHub Desktop.
April's extremely opinionated and beautiful Firefox setup
Extension:
Tab Center Redux (Dark Mode, Compact):
```
#topmenu {
display: none;
}
.tab-close {
margin-right: 17px;
}
#tablist-wrapper.shrinked .tab:not(.pinned) {
height: 32px !important;
}
body.dark-theme {
--menu-background: hsl(210, 9.289%, 21.045%);
--tab-background-normal: hsl(240, 3.089%, 18.045%);
--tab-background-pinned: hsl(240, 3.089%, 18.045%);
--tab-background-active: hsl(251, 15.2%, 30.1%);
--tab-background-hover: hsl(252, 10.1%, 22.55%);
--tab-border-color: hsla(0, 0%, 0%, 0.06);
--primary-text-color: rgb(220, 220, 220);
--tab-text-color-active: rgb(255, 255, 255);
}
:root {
--default-tab-line-color: hsl(240, 15%, 65%);
margin-left: -1px;
}
#tablist-wrapper.shrinked {
margin-top: 1px;
margin-left: 5px;
}
#tablist-wrapper.shrinked #tablist .tab-meta-image {
margin-left: 2px;
}
.tab-context {
min-width: 4px;
}
.tab.active {
font-weight: 600;
}
.tab-title-wrapper {
margin-bottom: 1px;
}
.active .tab-title-wrapper {
margin-bottom: 0px;
}
```
about:config:
```
user_pref("browser.urlbar.matchBuckets", "general:8, suggestion:4");
user_pref("browser.urlbar.maxRichResults", 15);
user_pref("browser.urlbar.oneOffSearches", false);
user_pref("browser.urlbar.suggest.openpage", false);
user_pref("browser.urlbar.suggest.searches", false);
user_pref("browser.urlbar.suggest.topsites", false);
user_pref("sidebar.position_start", false);
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
user_pref("ui.systemUsesDarkTheme", 1);
```
userChrome.css:
```css
#main-window:not([customizing]):not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse;
}
#navigator-toolbox {
border-bottom: 1px solid var(--toolbar-bgcolor) !important;
margin-top: 1px;
}
#titlebar, .titlebar-buttonbox-container {
display: none !important;
}
#sidebar-box[sidebarcommand="_0ad88674-2b41-4cfb-99e3-e206c74a0076_-sidebar-action"] #sidebar {
margin-right: -17px;
}
#sidebar-box[sidebarcommand="_0ad88674-2b41-4cfb-99e3-e206c74a0076_-sidebar-action"] #sidebar-header {
visibility: collapse;
}
#urlbar[usertyping] .urlbarView-row:not([type]):first-child,
#urlbar[usertyping] .urlbarView-row[type="search"]:first-child {
display: none;
}
#urlbar div[type="tabtosearch"] {
display: none;
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment