Banish the Firefox Megabar

Eric Lawler

June 17, 2020

Filed under “

Mozilla continues the war against its own users in Firefox 77, disabling workarounds to their horrific “megabar” that were launched with the “feature” in Firefox 75. Kill it with fire with a custom user-defined CSS. Like it’s 1997.

UserChrome.org has the instructions for doing this and a fantastic CSS generator that can override a bunch of Mozilla’s other new defaults. I didn’t notice their other address bar-related changes, so this is a barebones userChrome.css that kills the Megabar and retains the changes they’ve made to the search dropdown in the past year.

Knowing link rot, that site will disappear and/or be impossible to find. I’ll need to keep punting this file around for the next decade or so, so I’m saving it to this blogI think you have to write content to call a website a blog, right? website for future reference.

This goes in a new folder named chrome in your current profile directory. eg ~/.mozilla/firefox/mlq5vmgg.default-release/chrome/userChrome.css…to use a totally hypothetical path.

/*** BEGIN Firefox 77 (June 2, 2020) Override URL bar enlargement ***/

  /* Compute new position, width, and padding */

  #urlbar[breakout][breakout-extend] {
    top: 5px !important;
    left: 0px !important;
    width: 100% !important;
    padding: 0px !important;
  }
  /* for alternate Density settings */
  [uidensity="compact"] #urlbar[breakout][breakout-extend] {
    top: 3px !important;
  }
  [uidensity="touch"] #urlbar[breakout][breakout-extend] {
    top: 4px !important;
  }

  /* Prevent shift of URL bar contents */

  #urlbar[breakout][breakout-extend] > #urlbar-input-container {
    height: var(--urlbar-height) !important;
    padding: 0 !important;
  }

  /* Do not animate */

  #urlbar[breakout][breakout-extend] > #urlbar-background {
    animation: none !important;;
  }

  /* Remove shadows */

  #urlbar[breakout][breakout-extend] > #urlbar-background {
    box-shadow: none !important;
  }

/*** END Firefox 77 (June 2, 2020) Override URL bar enlargement ***/

Once that’s in the userChrome.css file… it still won’t work. 😬 That’s because Firefox 69 disabled the automatic search for, and loading of, the userChrome file. To finally be rid of the Megabar, ensure that toolkit.legacyUserProfileCustomizations.stylesheets configuration setting in your about:config is true. Restart Firefox and wave goodbye to that nasty blue monster.


On GitPrime

Eric Lawler

May 27, 2020

Filed under “

Copy-pasting my old interview answers for archive here, since Gitprime’s lovely blog post has disappearedTechnically, it lives on in a butchered format under their new Pluralsight branding. Congrats on the acquisition, Ben and team.. I fully believed this when writing it three years ago and still believe it today.

Maybe I’ll reach enlightenment in another decade and understand why so many programmers believe it’s fundamentally impossible to measure their performance by examining their raw output (programming code). Until then, I’ll keep experimenting with metrics on how a team is performing using a variety of–gasp–hard numbers and data.

​When did you decide that hard data/metrics could be useful in leading your team?

When comparing ourselves to Lawn Love’s other business units, full of KPIs and dashboards for every imaginable metric, engineering felt left out. Our performance indicators were very fuzzy and it was difficult to use feelings and anecdotal information to guide reviews. We didn’t have a means to devise more effective strategies for shipping more features, faster, when we couldn’t measure our current performance.

After reading your compelling arguments for GitPrime versus less nuanced measurements of engineering productivity, we decided our GitHub data is a potential goldmine, ready to be exploited to level up our engineering game.

How did you implement (or introduce the idea of) GitPrime?

We dove straight in! The team was skeptical of using quantifiable data to measure programmers’ productivity, rightfully decrying the measurement of raw lines touched as a poor proxy for performance. We worked through the highlights from your blog posts on “gaming” GitPrime (ie, doing more, better work!) and how it doesn’t use naive assumptions to generate its reports. We even had the chance to let the team express some of their concerns to Travis and your team in a video chat.

At first, we would review GitPrime once a month. After a few months, it became obvious that utilizing the tool more frequently could create faster feedback loops and help us all keep our eye on the end goal–delivering more features to improve the business. What reports do you use?

We use the daily​ update report every day in our morning engineering standups. We review the leaderboard, project timeline, and snapshot reports once a month, with the whole team.

What has been the cultural impact?

What’s the saying, only measure what you want to improve? We’re creating a culture where poor performers can be identified and coached to success, rather than letting performance problems languish in the dark for months… or years.​ When everyone is aware of how the team as a whole is moving, there are more opportunities for more people to suggest improvements to our processes. Everyone wins when projects are better spec’d and processes streamlined so engineers can spend more time doing what they love most–writing code.

What measurable improvements have you seen?

In our initial roll out of GitPrime, we shared your observations on commit frequency–that more frequent, smaller commits (“small, fast bites” were Travis’s words) strongly correlates to a higher overall throughput–to our team. As a result of changing our behavior and actually having a way to measure our progress, commits per day increased by 50% and time to 100 lines of productive code decreased by a similar amount, three months after launch.

18 months later, we’re still aligning our engineering processes with the hard data provided by GitPrime’s reports. There’s always room for more improvement, and we finally have the tools needed to recognize those areas of opportunity.

Bonus!

A never-published followup they did the next year with my most-senior engineer surfaced this gem of a quote:

I was somewhat skeptical at first, to be honest.

After getting in the habit of committing more frequently, and more importantly, consistently pumping out work, my [GitPrime metrics have] increased dramatically. I feel this has generally reflected my ability to output code effectively - not just in raw lines, but actually finishing discrete tasks. I used to fall into the trap of equating working longer hours with outputting more work, but now I am leaving work earlier in the day and accomplishing more in a shorter amount of time.

And that, dear reader, is what I call the very definition of success. Getting more productive work done in a day through the proverbial working smarter, not harder? As the kids say, that’s “😍.”