Configuring Librewolf

2026-05-09 21:17

How I set up my Librewolf browser.

Thanks to Benjamin Brunzel for how to set up the custom CSS, and Michael Kjörling for how to make the scrollbar larger.

Set Librewolf as default browser:

xdg-settings set default-web-browser librewolf.desktop

Set keyboard shortcut

In Debian Xfce, Keyboard --> Application Shortcuts and map exo-open --launch WebBrowser to ALT-W.

Install plugins

Keyboard mapping is found in Settings --> Extensions --> Manage Extensions --> Cog wheel --> Manage Extension Shortcuts. I had to remap a couple in my Xfce keyboard application shortcuts that were competing.

Create a custom CSS stylesheet to minimise the toolbar

As per userChrome.org, find your Profile Directory:

Click the menu button --> Help --> More Troubleshooting Information --> Application Basics --> Profile Directory --> Open Directory. Profile directory will open.

Create .../chrome/userChrome.css in the Profile Directory and paste this code (this is exactly from Ben's post):

/* asciijungles's userChrome.css
 * write to ~/.config/librewolf/librewolf/{yourProfile}/chrome/userChrome.css
 */

/* hide header tab bar */
#TabsToolbar {
    visibility: collapse !important;
}
/* hide huge sidebar header*/
#sidebar-header, #search-box {
    display: none!important;
}
#sidebar-header {
    display: none !important;
}

/* minimize sidebar splitter */
#sidebar-splitter {
    background-color: black!important;
    width: 1px!important;
    border: 0px!important;
}

Enable the new stylesheet to load on every startup:

  • about:config
  • userprof
  • Switch toolkit.legacyUserProfileCustomizations.stylesheets to True.

Make scrollbar bigger, square and always visible

  • about:config
  • widget.gtk.overlay-scrollbars.enabled = false
  • widget.non-native-theme.gtk.scrollbar.thumb-size = 1
  • widget.non-native-theme.scrollbar.style = 4
  • widget.non-native-theme.scrollbar.size.override = 20

Other minor changes

  • Reload tabs on startup
  • Disable ResistFingerprinting to load window at full size on startup

That's the gist of it.