Skip to content
yuuqilinPublic

About

A lightweight Firefox userChrome theme designed to optimize screen space without sacrificing accessibility.

Topics

Resources

Stars

295 stars

Watchers

7 watching

Forks

Repository files navigation

FlexFox


English | 日本語 | 简体中文 | Wiki

FlexFox is a Firefox userChrome theme focused on maximizing usable screen space while preserving accessibility. Toolbars and sidebars automatically collapse when not in use and expand as overlays without shifting page layout. When Sidebery is enabled, native tabs are automatically hidden to maintain a single tab system, avoiding redundant interface elements. It supports extensive customization through preferences and is designed as a flexible foundation for different browsing workflows.

FlexFox v6.5

Important

  • Changed Firefox's Expand sidebar on hover setting? Disable it. FlexFox requires this option to remain unchecked. (Guide)
  • Upgrading from a version earlier than v6? Remove all legacy styles from the Sidebery Styles Editor. (Guide)
  • Recommended setup: Use Firefox's vertical tabs mode, ideally together with Sidebery, for the most complete feature set and best overall experience.

🎬 Feature Showcase Video

Watch the v6.5 feature showcase:

FlexFox.v6.5.0.webm.mp4

For better video quality, watch on YouTube:

YouTube Link

🆕 What's New

🦊 Latest: v7.1.3 — See Full Changelog for details.

✨ Features

  • Auto-collapsing tabs, toolbars, and sidebars.
  • Expands as an overlay without shifting webpage content or causing layout jumps.
  • Quickly hide or show tabs and toolbars using keyboard shortcuts or toolbar buttons.
  • Automatically hides native tabs when Sidebery is enabled to maximize screen space.
  • Optional translucent blur effects for menus, panels, and address bar popups.
  • Support for Windows Mica and custom browser wallpapers.
  • 11 built-in accent colors with full light and dark mode support, compatible with any Firefox theme.
  • Customizable icons for sidebar buttons, bookmark folders, bookmark stars, window controls, and more.
  • Optional auto-hide for toolbar buttons and window controls, keeping the interface minimal while remaining easily accessible.
  • Extensive appearance customization through Firefox preferences, including:
    • Rounded or squared UI element corners
    • Menu spacing
    • Webpage content margins and borders
    • Flat or embossed address bar styles
    • Tab borders and background colors
    • Animation and transition effects
  • Customizable pinned tab layout and area height.
  • Floating search box.
  • Support for custom style overrides to personalize or extend the default theme.
  • Additional quality-of-life enhancements, including:
    • Preventing white flashes while pages are loading
    • Displaying the total number of open tabs on the "List All Tabs" button
  • Browsing experience improvements, including:
    • Enhanced active tab visibility for easier navigation between related tabs
    • Grid-based pinned tabs that save space, support large pinned tab collections, and prevent tab shifting when sidebars expand, reducing mouse repositioning
  • Minimal performance overhead.

⚙️ Options

FlexFox leaves the native Firefox interface largely undisturbed by default, enabling only the core layout features and essential styles upon installation.

To reproduce many of the layouts and interface customizations shown in the previews, or to modify and revert specific design changes, you can use the following two independent systems.

🧩 Configurable Preferences (about:config)

Most of FlexFox's features, layout toggles, and appearance adjustments are integrated directly into Firefox's preferences system. This allows you to customize browser behavior, enable optional interface enhancements, or restore specific elements back to their native Firefox appearance without modifying any code.

To access these preferences, enter about:config in the address bar and press Enter. If you imported the provided user.js during installation, searching for uc.flex will display all available FlexFox preferences. You can also manually create preferences using the option names listed in the documentation.

Tip

For the complete list of available options, supported values, and detailed descriptions, see:

📄 Preferences List

📜 User-Customizable Styles

For modifications beyond the built-in preference system, FlexFox provides dedicated user customization files for both interface and webpage styling.

  • To modify interface (chrome) styles, create uc-user-settings.css in the components folder
  • To modify webpage (content) styles, create uc-custom-content.css in the content folder

Styles and variables copied into these files will override FlexFox's defaults. Since these files are user-managed and not included in the project source, they remain unaffected by future updates.

When reusing styles from existing FlexFox files (such as uc-variables.css), copy the complete selector or rule block to preserve the original context and dependencies.

📖 Usage Guides

💿 Installation and Updates

👷 Manual Installation

  1. Install Sidebery (optional but recommended).

  2. Download the latest FlexFox release from the project's Releases page.

  3. Open about:support, locate Profile Folder, and click Open Folder to access your Firefox profile directory.

  4. Copy the chrome folder and user.js file from the archive root into your Firefox profile folder.

  5. (Optional) Open user.js in a text editor.

    The file contains both FlexFox preferences (uc.flex.*) and optional native Firefox preferences. FlexFox preferences are imported automatically, while native Firefox preferences are provided as commented entries. Remove the leading // only for the native Firefox preferences you wish to change, then verify that the following required preferences remain configured as shown:

    toolkit.legacyUserProfileCustomizations.stylesheets = true
    svg.context-properties.content.enabled = true
    sidebar.visibility = always-show
    
  6. Restart Firefox, then delete user.js.

    Do not skip this step. If user.js remains in your profile folder, its settings will be reapplied every time Firefox starts, resetting your preferences and preventing changes made in about:config from taking effect.

  7. Configure Sidebery:

    • Open Settings (gear icon).
    • Remove any old FlexFox styles from Styles Editor.
    • Go to Help → Import addon data.
    • Import sidebery-settings.json from the Sidebery folder in the downloaded archive.
  8. Open about:config and search for uc.flex to view and adjust FlexFox preferences.

🚀 Automated Installation and Updates

FlexFox can be installed and updated automatically using either PowerShell scripts or Git.

Choose a method below. For a first installation, follow its setup instructions. For later updates, run the same script again.

💻 PowerShell Script

[Click to expand] 👇

Run one of the commands below in a PowerShell window.

The script supports the following command-line options:

  • -ProfilePath 'path' / --profile-path 'path'

    • Specifies the Firefox profile folder, bypassing the selection prompt.
  • -Silent / --silent

    • Runs without prompts and does not copy user.js. If -ProfilePath is omitted, the first detected Firefox profile is used.

First installation: In interactive mode, choose whether to copy user.js. If you copy it, restart Firefox, then delete user.js.

If you skip user.js or use -Silent, set these required preferences in about:config:

toolkit.legacyUserProfileCustomizations.stylesheets = true
svg.context-properties.content.enabled = true
sidebar.visibility = always-show

Later updates: Run the same script again. If you copy user.js again, restart Firefox, then delete it.

Sidebery (optional): Download sidebery-settings.json and import it from Sidebery → Settings → Help → Import addon data.

Online installation

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass; & ([scriptblock]::Create((((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/yuuqilin/FlexFox/refs/heads/main/scripts/install-flexfox.ps1')) -replace '^\uFEFF', '')))

Local installation

Download install-flexfox.ps1 and run:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass; & 'C:\Path\To\install-flexfox.ps1'

Local scheduled silent update

powershell.exe -NoProfile -ExecutionPolicy Bypass -File "C:\Path\To\install-flexfox.ps1" -ProfilePath "C:\Path\To\Firefox\Profile" -Silent

🔃 Git Pull

[Click to expand] 👇

Download and run the script for your operating system to install or update FlexFox with Git.

The scripts manage and update only the chrome folder in your Firefox profile. Other project files are not copied there.

On the first run, choose your Firefox profile. Later runs detect the existing Git-managed profile; if several are found, choose one.

The scripts support the following command-line options:

  • -ProfilePath 'path' / --profile-path 'path'

    • Specifies the Firefox profile folder, bypassing the selection prompt.
  • -Silent / --silent

    • Runs without prompts. If -ProfilePath is omitted, the script requires exactly one detected Git-managed profile. For scheduled updates, use -ProfilePath to specify the target profile.

First installation: If FlexFox is not already installed, the script also copies user.js once. If the file is copied, restart Firefox, then delete it. An existing user.js is never overwritten.

Later updates: Run the same script again to update only chrome. The script does not copy user.js again.

To import new preferences from a later release, download the latest user.js, review its contents, and place it in your Firefox profile folder. Restart Firefox, then delete user.js. Importing it also reapplies its defaults to preferences you have customized.

Sidebery (optional): Download sidebery-settings.json and import it from Sidebery → Settings → Help → Import addon data.

Custom untracked files are preserved. If tracked FlexFox files have local changes, the script stops without modifying them. If a merge conflict occurs, interactive mode lets you restore the previous state or keep the conflict for manual resolution; silent mode restores the previous state and exits.

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass; & 'C:\Path\To\git-pull-chrome-only.ps1' -ProfilePath 'C:\Path\To\Firefox\Profile' -Silent
bash "/path/to/git-pull-chrome-only.sh" --profile-path "/path/to/firefox/profile" --silent

Alternatively, run these Git commands in your Firefox profile folder:

First-time setup

git init
git remote add origin https://github.com/yuuqilin/FlexFox.git
git remote set-branches origin main
git config remote.origin.tagOpt --no-tags
git sparse-checkout init --no-cone
git sparse-checkout set /chrome
git fetch --no-tags origin
git checkout -b main origin/main

These commands do not copy user.js. To import default preferences, download it using the link above, place it in your Firefox profile folder, restart Firefox, then delete it.

Manual update

git fetch --no-tags --prune origin
git checkout main
git sparse-checkout set /chrome
git merge --no-edit origin/main
git sparse-checkout reapply

🐞 Known Issues

  • For Floorp users: Switch to Firefox Proton UI in Floorp's interface options to reduce compatibility issues.
  • Tested on Windows only: May require adjustments for other operating systems.

🎖️ Credits

FlexFox builds upon the work of the following excellent projects:

  • VerticalFox — provided the foundation for the vertical tab layout and several core layout concepts.
  • firefox-csshacks — many essential tweaks and layout fixes used in FlexFox are derived from this invaluable collection.

FlexFox is also inspired by the ideas and aesthetics of these projects:

Additional icon assets used in FlexFox:

Special thanks to all these creators for sharing their work with the community.

📄 LICENSE


This project is primarily licensed under the MIT License.
However, parts of the source code (see below) include code originally licensed under the Mozilla Public License 2.0 (MPL-2.0).

Specifically, some integrated code sections in uc-sidebar.css are derived from the following project:

All such sections retain the original MPL-2.0 license notice and comply with its terms.
For the full text of the MPL-2.0, please see LICENSES/MPL-2.0.txt.

This project includes additional graphical assets with the following licenses:

About

A lightweight Firefox userChrome theme designed to optimize screen space without sacrificing accessibility.

Topics

Resources

Stars

295 stars

Watchers

7 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages