No description
  • PowerShell 38.5%
  • Shell 35.6%
  • CSS 25.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-17 04:21:22 +00:00
install.ps1 Keep URL bar fixed and back up existing styles 2026-10-16 21:18:05 -04:00
install.sh works with pacman 2026-10-17 04:21:22 +00:00
README.md works with pacman 2026-10-17 04:21:22 +00:00
userChrome.css Update userChrome.css 2026-10-16 21:40:21 -04:00

FFOneLine

A minimal Firefox theme that collapses the tab strip and the URL bar into a single top row, giving every page back the vertical space a second toolbar would otherwise eat.

┌──────────────────────────────────────────────────────────────────┐
│ ↶ ↷ ⟳  [ search / URL bar ]   │ tab │ tab │ tab │ … │  ─ ☐ ✕    │
└──────────────────────────────────────────────────────────────────┘
        URL bar (left)                    tabs (right)

Inspired by FoxOne and LittleFox.

Features

  • One-line layout – URL bar and tabs share a single row.
  • URL bar on the left, tabs on the right, window controls stay native top-right.
  • The URL bar keeps a fixed width, so clicking it never nudges the tabs.
  • Responsive – below 1200px the URL bar drops onto its own row under the tabs.
  • Bookmarks bar and the notification bar keep their own full-width rows.
  • Works with horizontal tabs; falls back gracefully with vertical/hidden tabs.
  • Configurable via CSS variables at the top of userChrome.css.

Requirements

  • Firefox with the legacy stylesheet support enabled (see below).
  • The one-line layout relies on the current DOM where #TabsToolbar is a direct child of #navigator-toolbox (Nova-era builds). Pre-Nova builds that wrap the tabs in #titlebar are handled too.

Install

Windows – PowerShell:

irm https://forgejo.hexium.cc/WilliamTheFatMan/FFOneLine/raw/branch/main/install.ps1 | iex

Linux – shell:

curl -fsSL https://forgejo.hexium.cc/WilliamTheFatMan/FFOneLine/raw/branch/main/install.sh | bash

The installer scans your profile folders and finds Firefox, Firefox Developer Edition, Firefox Nightly, Floorp, LibreWolf, Zen and Waterfox profiles — in ~/.mozilla, ~/.config/mozilla (XDG builds such as the Arch/pacman Firefox), snap and flatpak locations. If more than one is found it lists them and lets you pick which to install into (numbers separated by commas, or a for all). It copies userChrome.css into each profile's chrome/ folder and enables the pref via user.js. Restart the browser afterwards.

Before overwriting an existing userChrome.css it saves a one-time backup next to it as userChrome.css.bak (this backup is never overwritten by later runs, so your original file is kept).

Set FFONELINE_URL to install a different stylesheet, e.g.:

FFONELINE_URL=https://example.com/my.css curl -fsSL <install.sh url> | bash

Manual

  1. Open about:config and set toolkit.legacyUserProfileCustomizations.stylesheets to true.
  2. Open about:support → Profile Folder → Open Folder.
  3. Create a chrome folder if it does not exist.
  4. Copy userChrome.css into it.
  5. Restart Firefox.

Running from a clone works too – the installers use a local userChrome.css when present:

.\install.ps1          # Windows
./install.sh           # Linux

Customisation

Edit the variables at the top of userChrome.css:

Variable Default Description
--ffol-urlbar-width clamp(500px, 35vw, 630px) URL-bar region width in the one-line layout
--ffol-tab-radius 0px Tab corner radius (0 = square corners)

To put the URL bar on the right instead, swap the two order values in the #nav-bar and #TabsToolbar rules (1 ↔ 2).

Responsive breakpoint

The one-line layout only applies at @media (min-width: 1200px). Narrower windows fall back to Firefox's normal stacked toolbars, which puts the URL bar on its own row below the tabs. To change where this happens, edit the 1200px value in userChrome.css (media queries cannot use CSS variables).

Uninstall

  • Restore chrome/userChrome.css.bak over chrome/userChrome.css if you had a previous version, otherwise delete chrome/userChrome.css.
  • Remove the toolkit.legacyUserProfileCustomizations.stylesheets line from user.js (or delete user.js if the installer created it just for this).

Then restart the browser.

Notes

  • Changes to userChrome.css and user.js are read at startup – restart Firefox to apply.
  • user.js is used instead of prefs.js because Firefox rewrites prefs.js on shutdown, while user.js is re-read on every start.

License

No license specified yet.