Reading Time: 4 minutes

I no longer use Google Chrome or Mozilla’s Firefox, but you can’t really escape their impact on web technology. One of the web browsers I do use is Librewolf and is based on Firefox. The latest Firefox update had a major impact on look and feel of the web browser. I decided it was time to learn a bit more about how to manage that chrome to make it look the way I wanted.

Librewolf is my preferred web browser because it is the best parts of Mozilla Firefox with all of the AI and tracking crap excised. I use IronFox for the same reason on my mobile devices. I could adapt to any look and feel, I expect, but I am always willing to spend a bit of time tinkering if it’s an option.

I’ve mentioned the Stylus browser extension before. It works on any web browser. A post I wrote a decade ago for Canadian immigration lawyers still gets regular visits. It shows how to use the extension to make it possible to print an entire immigration form that has been designed to only show a bit at a time. All you need is a bit of CSS experience. In fact, you don’t even need much knowledge. Most of how I use Stylus is to funnel a bunch of web page styles into a style that makes them disappear from the page:

/*Twitter*/
[aria-label="Verified account"],
[data-testid="icon-verified"], 
[data-testid="eventHero"], 
[data-testid="placementTracking"],
[data-testid="sidebarColumn"],
/*Google*/
[data-text-ad="1"],
[aria-label="Ads by Google"],
[aria-label="Additional Results"],
#tvcap,
[aria-label="Ads"],
/*Bing*/
.b_ad, 
.highlight-cards,
.b_ans,
#loop_channel,
#messages-list, 
#telegraph,
#b_copilot_search_container,
/* Chronicle of Higher Ed */
.GoogleDfpAd-container,
/*Associated Press*/
.Page-header-leaderboardAd,
/*Microsoft Family Safety */
#nuka-carousel,
/*Microsoft Outlook Web */
div.GssDD,
#ifeu,
/* OneDrive */
.od-QBannerUpsell-main,
#Premium,
[title="Get more storage"],
/* Amazon */
button.rufus-pill,
a #adLink, #ad,
/* UIC */
#ilaCookieModal,
#ilaCookieNoticeDiv,
.header-video,
.newspack-popup,
/* Guardian */
gu-island,
.dcr-swayiu,
/* Google Search Console */
[jsname="r3xOef"]
{display:none !important;}

In other words, all you need to do is use your developer mode on your web browser (usually hitting F12) and identifying the offending area on the web page. Find the class or ID of the section and add it to the list. All of those style references are then applied with the style of “display: none”.

That’s beside the point except that, once you know a bit about CSS, you can start to theme other things.

Under the Firefox Hood

You can do a lot of customization in Firefox and Librewolf by pulling up about about:config (less powerful is Chrome and Edge’s chrome://flags or edge://flags but similar concepts). It provides some settings that you can manipulate through the Settings page but also others that are only visible behind the scenes.

The first place I started was a web search. It pointed me to a way to make the browser toolbar a bit more spacious. The item is layout.css.devpixelsperpx. Now, you may not have thought about how web browsers are themselves designed. Once you realize you can alter them the same way you can alter a web page, it opens up all sorts of possibilities.

In the case of this element, the default is 1. Think of it as 100, though. If you want to make your tab bar a bit larger, you can increase this number. 2 is double the size, so you don’t need to make it much larger (or smaller, if you prefer a more compact look). Click the pencil to edit and change the number. A lot of people have suggested 1.15 is a pretty comfortable start.

A screenshot of the about:config web page in Mozilla Firefox's settings. It shows a search box with the term pixels per in it and then the element below. There is a grayed out bar at the bottom to show that you can also add your own element.
Firefox about:config showing the PixelsPerPx element

But the new Firefox has rounded edges and circles that I wasn’t really interested in having. This is from an image that they shared on their blog post announcing the update to version 157.

A screenshot of the Firefox web browser. Instead of a menu bar that says "File, Edit," and so on, there are two small icons with letters: one has an M, and one has an F. They are shaped like speech bubbles. Next to it is a long round oval that says "Firefox". This is the new tab design. Below this are forward and backward buttons and a long bar for the location to go in.
Mozilla Firefox browser version 157 toolbar

In fact, it hides a lot of the things that I like using, like a menu. It was time to dig a bit deeper into the web to find out how to tweak this.

Put the User in Firefox

I had never investigated this aspect of Firefox before but I quickly came across folks talking about userChrome.css. It’s a style sheet (CSS) that lives in your web browser’s folder structure. It gets loaded each time you start your browser. Here’s a bit of an explainer on it.

You need to turn the userChrome support on within Librewolf; I don’t know if that’s the same on Firefox but it should be given how Librewolf is built. It’s under Settings > Appearances. Click the checkbox to turn it on.

The hardest thing, frankly, is to figure out where your web browser is installed. Firefox has some instructions. In the case of Librewolf, you can go to about:support. You will see an entry on the table that appears called Profile folder. There is also an open button that will take you to the profile folder.

You need to add a chrome folder if there isn’t one already. Here is how but you are literally just making a folder inside your profile folder called “chrome”. You will place your stylesheet in there.

A screenshot of Windows File Explorer. The path is the chrome folder inside this user's Profile folder. There is a large white icon that shows a gear on it. Below it is the file name of UserChrome.css.
A screenshot of Windows File explorer showing the Profiles/…/chrome folder holding a stylesheet

Now, the quick answer is that you just need to set all rounded corners to square. If you know CSS, you may have already guessed that the style is border-radius. I didn’t know that. To square them off, you set border-radius to zero. You square them all of by applying it to everything. The single line to go in the userChrome.css is:

* { border-radius: 0 !important; }

Save a text file with Notepad or your text editor called userChrome.css into your chrome folder created above. Then close your Firefox or Librewolf web browser and start it again. You should see those rounded corners go away. If it doesn’t work, make sure that, when you saved the text file, it didn’t add a txt extension to the file. It should be userChrome.css not userChrome.css.txt and you may be hiding file extensions, and not see that it has been added.

Now, you may have noticed that there was a second option under Appearances. The new look and feel of Firefox is called Nova. So you can also toggle the new appearance off and it will give you a much softer corner on your tabs. I still don’t like it and prefer the zero border-radius.

Screenshot with severely rounded tab corners using the Nova look

You can see the difference between the image above, where Nova is enabled, and the one below, where it is both turned off and my userChrome.css is used.

Screenshot of this website with squared corners on the tabs

I also use the top level menu. If yours is missing, you can right click up there at the top of the browser and should be able to turn it on. If you change your mind, you can use the View menu to hide it again.

You might wonder why I spend so much time tinkering. Two reasons. First, I learn by experimenting and I have now strengthened my understanding both of CSS and of how Librewolf and Firefox work. More importantly, user interface has a huge productivity impact. The better I am able to make the tools work the way I need them to for me to be efficient, the better. It’s why I use Stylus to clean up websites and remove cruft so I can get my work done. Tools that allow me to use them in the way they suite me best will always be my priority.