Skip to content

Instantly share code, notes, and snippets.

@jeremyredhead
Last active February 4, 2021 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyredhead/6d7316607785fed741af12c5e41ba975 to your computer and use it in GitHub Desktop.
Save jeremyredhead/6d7316607785fed741af12c5e41ba975 to your computer and use it in GitHub Desktop.
My personal userChrome.css
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Hide disabled page actions:
from <https://www.reddit.com/r/firefox/comments/7usqtm/about_extensions_in_address_bar/dtog5qh/> */
#pageActionPanelMainView > .panel-subview-body > toolbarbutton[disabled="true"] {
display: none !important;
}
/* Hide extraneous page action toolbar separators */
#pageAction-panel-builtInSeparator ~ [disabled="true"] ~ toolbarseparator {
display: none;
}
#pageAction-panel-builtInSeparator ~ :not([disabled="true"]) ~ toolbarseparator {
display: inherit;
}
/* Hide (windowed) Min/Max/Close Buttons:
based on <https://support.mozilla.org/en-US/questions/950311> */
#main-window { -moz-appearance: none !important; }
.titlebar-buttonbox-container { display: none !important; }
/* Customize */
:root { --my-focus: #ff9; }
:root :focus:not(:active) {
--arrowpanel-dimmed: var(--my-focus);
--arrowpanel-dimmed-further: var(--my-focus);
--arrowpanel-dimmed-even-further: var(--my-focus);
}
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Hide old news/annoying notices */
#private-browsing-notice { visibility: collapse; }
#legacy-extensions-notice { visibility: collapse; }
/* Never forget... */
#category-legacy { display: -moz-box; }
/* Extensions tab/section should only show *installed* addons */
*|recommended-extensions-section { display: none; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment