Skip to content

Instantly share code, notes, and snippets.

@nabakdev
Created September 27, 2023 13:53
Show Gist options
  • Save nabakdev/bab86c9a07bab8ffe5abf974334908cb to your computer and use it in GitHub Desktop.
Save nabakdev/bab86c9a07bab8ffe5abf974334908cb to your computer and use it in GitHub Desktop.
Remove close button firefox

Remove close button firefox

Enable userChrome customization

  1. open firefox
  2. goto about:config
  3. set toolkit.legacyUserProfileCustomizations.stylesheets to true

Create the directory and its files

find the Profile Directory path on about:support

  1. create a new directory named chrome inside <profile-directory>
  2. inside chrome directory, create 2 files userChrome.css userContent.css

Add custom css to remove close button

add css below to userChrome.css

.titlebar-buttonbox-container,
.titlebar-spacer {
  display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment