- PowerShell 38.5%
- Shell 35.6%
- CSS 25.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| install.ps1 | ||
| install.sh | ||
| README.md | ||
| userChrome.css | ||
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
#TabsToolbaris a direct child of#navigator-toolbox(Nova-era builds). Pre-Nova builds that wrap the tabs in#titlebarare handled too.
Install
One-liner (recommended)
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
- Open
about:configand settoolkit.legacyUserProfileCustomizations.stylesheetstotrue. - Open
about:support→ Profile Folder → Open Folder. - Create a
chromefolder if it does not exist. - Copy
userChrome.cssinto it. - 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.bakoverchrome/userChrome.cssif you had a previous version, otherwise deletechrome/userChrome.css. - Remove the
toolkit.legacyUserProfileCustomizations.stylesheetsline fromuser.js(or deleteuser.jsif the installer created it just for this).
Then restart the browser.
Notes
- Changes to
userChrome.cssanduser.jsare read at startup – restart Firefox to apply. user.jsis used instead ofprefs.jsbecause Firefox rewritesprefs.json shutdown, whileuser.jsis re-read on every start.
License
No license specified yet.