Skip to content

Instantly share code, notes, and snippets.

@SpinB
Last active June 2, 2019 18:04
Show Gist options
  • Save SpinB/1b78ed6ee93aa8e8ca7910acc6b07935 to your computer and use it in GitHub Desktop.
Save SpinB/1b78ed6ee93aa8e8ca7910acc6b07935 to your computer and use it in GitHub Desktop.
Hide Firefox min, max and close buttons.
/*
You can add this block to your userChrome.css or you can
save the file and import it to your userChrome.css
@import "css/userChrome-files/hide_buttons.css";
Just change the path to the file.
*/
/************************************************
Hide min max and close Buttons in Private Mode
************************************************/
:root[privatebrowsingmode]
.titlebar-min,
.titlebar-max,
.titlebar-close
{
display: none !important;
}
/********************************
Hide min max and close buttons
*********************************/
.titlebar-min,
.titlebar-max,
.titlebar-close
{
display: none !important;
}
/*************************************************
Hide min max and close Buttons in F11 FullScreen
*************************************************/
:root[sizemode=fullscreen]
#minimize-button,
#restore-button,
#close-button
{
display: none !important;
}
/*EOF*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment