DEV Community

Nelson Figueroa
Nelson Figueroa

Posted on Originally published at nelson.cloud on

How to Remove Rounded Firefox Tabs

Firefox 157.0 made its tabs round along with a bunch of other UI elements. I thought it was ugly as hell, so I spent time figuring out how to change the tabs back. Here’s how to bring back corners in Firefox tabs and other areas.

Removing Rounded Tabs

This has been tested on Firefox v159.

  1. Type about:config in your address bar and press enter. If you see a “Proceed with Caution” screen, click on “Accept the Risk and Continue”.
  2. Type toolkit.legacyUserProfileCustomizations.stylesheets into the search field and press enter.
  3. In the result that comes up, click the toggle button on the right side (or double click the row). The false value should change to true.
  4. Next, type about:support in your address bar and press enter. Use CTRL/CMD + F to search for “Profile Folder”. You should see the full path to your Firefox profile, usually ending with .default-release. Open that folder.
  5. In that folder, create a folder named “chrome” (all lowercase). Then, create a file inside it called “userChrome.css”.
  6. Open “userChrome.css” with a plain text editor. Copy and paste this CSS into it:

    :root {
      --tab-border-radius: 4px !important;
    }
    
  7. Save “userChrome.css”. Make sure the file ends with .css. Then restart Firefox.

The tabs are more squared now. I like my tabs boxy, but you can tweak the 4px value and increase it if you want more roundness, or set it to 0px if you want fully square corners. Just remember to restart Firefox after editing and saving. Here’s a before and after screenshot:

Firefox tabs before (rounded pill shape) and after (squared corners)

Squaring off the Address Bar and Menus

If you also want other elements to be less rounded, add the following to “userChrome.css”:

:root {
  --border-radius-small: 4px !important;
  --border-radius-medium: 4px !important;
  --border-radius-large: 4px !important;
  --border-radius-xlarge: 4px !important;
  --panel-border-radius: 4px !important;
  --panel-menuitem-border-radius: 4px !important;
}
Enter fullscreen mode Exit fullscreen mode

There is no --tab-border-radius in this CSS snippet because the variables already cover the tabs.

Then restart Firefox. Your address bar, menus, and bookmarks should be more squared, just like your tabs.

Firefox address bar and dropdown before (rounded) and after (squared corners)

Squaring off the New Tab and Home Pages

In the same “chrome” folder that you previously created, create a new file named “userContent.css” and add this CSS to it:

@-moz-document url("about:newtab"), url("about:home") {
  :root {
    --border-radius-small: 4px !important;
    --border-radius-medium: 4px !important;
    --border-radius-large: 4px !important;
    --border-radius-xlarge: 4px !important;
  }

  content-search-handoff-ui {
    --content-search-handoff-ui-border-radius: 4px !important;
  }
}
Enter fullscreen mode Exit fullscreen mode

Save the file and restart Firefox. The elements on the new tab and home pages should be more squared.

Firefox New Tab page before (rounded search box and shortcuts) and after (squared corners)

Top comments (0)