---
title: "How to Enable userChrome.css and userContent.css in Firefox"
id: "20307"
type: "post"
slug: "firefox-enable-userchrome-css"
published_at: "2026-11-17T07:00:00+00:00"
modified_at: "2026-11-17T07:00:00+00:00"
url: "https://aanctech.com/firefox-enable-userchrome-css/"
markdown_url: "https://aanctech.com/firefox-enable-userchrome-css.md"
excerpt: "Customize the Firefox interface with your own CSS. Turn on the hidden stylesheet setting, create the chrome folder and add userChrome.css step by step."
taxonomy_category:
  - "Firefox"
taxonomy_post_tag:
  - "about:config"
  - "Customization"
  - "Firefox"
  - "userChrome.css"
---

[https://www.youtube.com/watch?v=pKJL8K8tmSY](https://www.youtube.com/watch?v=pKJL8K8tmSY)

[▶ Watch the video on YouTube](https://www.youtube.com/watch?v=pKJL8K8tmSY)

Firefox can load your own CSS files to change how the browser looks. **userChrome.css** styles the Firefox interface itself (tabs, toolbars, menus), and **userContent.css** styles web pages. Since Firefox 69, these files are ignored unless you turn on a hidden setting first.

## Step 1: Turn on the stylesheet setting

1. Type `about:config` in the address bar and press Enter.
2. Click **Accept the Risk and Continue**.
3. In the search box, paste `toolkit.legacyUserProfileCustomizations.stylesheets`.
4. Double-click the result (or click the toggle button) so its value becomes **true**.

## Step 2: Find your profile folder

1. Type `about:support` in the address bar and press Enter.
2. Next to **Profile Folder**, click **Open Folder**. File Explorer opens your active profile.

## Step 3: Create the chrome folder and CSS files

1. In the profile folder, create a new folder named `chrome` (all lowercase).
2. Open the chrome folder, right-click and choose **New > Text Document**.
3. Rename it to `userChrome.css`. Make sure it does not end in .txt. Turn on **View > Show > File name extensions** in File Explorer to check.
4. Do the same for `userContent.css` if you want to style web pages.

## Step 4: Add a test rule

Open userChrome.css in Notepad and add a simple rule to check it works. For example, this hides the tab close buttons on inactive tabs:

```
.tabbrowser-tab:not([selected]) .tab-close-button {
  display: none !important;
}
```

Save the file, close Firefox completely and open it again. Changes only load when Firefox starts.

## Useful tips

- Firefox updates can rename interface parts, so old CSS snippets from the internet may stop working. Look for snippets made for your Firefox version.
- To undo everything, delete or rename the chrome folder and restart Firefox.
- Use the **Browser Toolbox** (in **More tools** after enabling browser chrome debugging in DevTools settings) to inspect interface elements and find their names.

## Frequently asked questions

### Why are my changes not showing?

Check that the setting is true, the folder is called chrome, the file is not named userChrome.css.txt, and that you fully restarted Firefox.

### Is this safe?

Yes. It only changes how things look. A bad rule can hide parts of the interface, but deleting the file fixes it.

## Must Read

[https://aanctech.com/firefox-disable-captive-portal-detection/](https://aanctech.com/firefox-disable-captive-portal-detection/)

[https://aanctech.com/firefox-export-import-bookmarks-html/](https://aanctech.com/firefox-export-import-bookmarks-html/)

### Leave a Comment [Cancel Reply](/firefox-enable-userchrome-css/#respond)
