Skip to content

Instantly share code, notes, and snippets.

@lextra2
Last active July 7, 2020 00:50
Show Gist options
  • Save lextra2/91adae9fdda66051cbe4882dfb109787 to your computer and use it in GitHub Desktop.
Save lextra2/91adae9fdda66051cbe4882dfb109787 to your computer and use it in GitHub Desktop.
simple firefox css - hides some annoying things
* {
-moz-appearance: none !important;
border: none !important;
text-shadow: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
transition-duration: 1ms !important;
transition-delay: 1ms !important;
}
/*
hides some things:
titlebar-spacer = hides top left empty space, behind tabs
urlbarView = hides urlbar search suggestions
urlbar-history-dropmarker = hides drop-down button (to view search history) at the end of an empty urlbar
tab-close-button = hides X button to close a tab
sidebar-splitter = disables resizing of the sidebar
sidebar-close = hides X button to close the sidebar
context-navigation = hides navigation buttons from the right-click context menu
*/
.titlebar-spacer,
.urlbarView,
.urlbar-history-dropmarker,
.tab-close-button,
.sidebar-splitter,
#sidebar-close,
#context-navigation {
display: none !important;
}
/* sidebar fixed width */
#sidebar {
overflow: hidden !important;
min-width: 200px !important;
max-width: 200px !important;
}
/*
hides some things:
titlebar-spacer = hides top left empty space, behind tabs
urlbarView = hides urlbar search suggestions
urlbar-history-dropmarker = hides drop-down button (to view search history) at the end of an empty urlbar
tab-close-button = hides X button to close a tab
sidebar-close = hides X button to close the sidebar
context-navigation = hides navigation buttons from the right-click context menu
*/
.titlebar-spacer,
.urlbarView,
.urlbar-history-dropmarker,
.tab-close-button,
#sidebar-close,
#context-navigation {
display: none !important;
}
/* sidebar width */
#sidebar-box {
overflow: hidden !important;
min-width: 8px !important;
max-width: 200px !important;
}
/* prevents white flash */
.browserContainer {
background: rgba(30, 30, 40, 1) !important;
}
/* prevents white flash */
@-moz-document
url("about:home"),
url("about:blank"),
url("about:newtab"),
url("about:privatebrowsing") {
body {
background: rgba(0, 0, 0, 0.7) !important;
}
}
url("about:about"),
url("about:addons"),
url("about:blank"),
/* url("about:buildconfig"),*/
/* url("about:cache"),*/
url("about:certificate"),
/* url("about:checkerboard"),*/
url("about:compat"),
url("about:config"),
url("about:crashes"),
/* url("about:credits"),*/
/* url("about:debugging"),*/
url("about:devtools"),
url("about:downloads"),
url("about:home"),
url("about:library"),
url("about:license"),
url("about:logins"),
url("about:logo"),
/* url("about:memory"),*/
url("about:mozilla"),
url("about:networking"),
url("about:newtab"),
url("about:performance"),
/* url("about:plugins"),*/
url("about:policies"),
url("about:preferences"),
url("about:privatebrowsing"),
url("about:profiles"),
url("about:protections"),
url("about:rights"),
url("about:robots"),
/* url("about:serviceworkers"),*/
url("about:studies"),
url("about:support"),
/* url("about:sync-log"),*/
url("about:telemetry"),
url("about:url-classifier"),
/* url("about:webrtc"), */
url("about:welcome")
@lextra2
Copy link
Author

lextra2 commented Jan 14, 2020

to use a custom theme
about:config > toolkit.legacyUserProfileCustomizations.stylesheets > true

to disable most animations
about:config > toolkit.cosmeticAnimations.enabled > false

to open the custom theme location
about:support > profile folder > open folder

to disable browser toolbox prompt
about:config > devtools.debugger.prompt-connection > false

to force enable gpu acceleration on all elements
about:config > gfx.webrender.all > true

to enable gpu acceleration on supported elements
about:config >gfx.webrender.enabled > true

to enable webrender windows compositor
about:config > gfx.webrender.compositor > true

to force enable webrender compositor
about:config > gfx.webrender.compositor.force-enabled > true

to isolate cookies by domain
about:config > privacy.firstparty.isolate > true

to isolate cache by domain
about:config > browser.cache.cache_isolation > true

@lextra2
Copy link
Author

lextra2 commented Feb 11, 2020

@lextra2
Copy link
Author

lextra2 commented Feb 27, 2020

to disable the fullscreen warning
full-screen-api.warning.timeout = -1
full-screen-api.warning.delay = -1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment