1

I tried to create a file in my profile folder: chrome/userChrome.css

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#back-button, #forward-button {
  display: none!important;
}

I also tried

@-moz-document url(chrome://browser/content/browser.xul) {
  #back-button, #forward-button { display: none!important; } 
}

and

#nav-bar #back-button, #nav-bar #forward-button {
  display: none !important;
}

But none of this has any effect (even after firefox restart). I guess, this is the old way of achieving this (in firefox 58)


Note: if you are on this path, note that you won't have any more access to the back list dropdown

2
  • Try these CSS rules. If this doesn't work, it might be worth a Mozilla bug report.
    – harrymc
    Commented Jun 5 at 10:29
  • 2
    BTW, every now and then Mozilla changes the names of objects... I've made userChrome.css rules that work on one version of Firefox (and Thunderbird) that have to be modified to work on a later version. sigh Commented Jun 5 at 16:52

1 Answer 1

2

You may need to enable user stylesheets before your userChrome.css is taken into effect.

In about:config, set toolkit.legacyUserProfileCustomizations.stylesheets to true.

#back-button and #forward-button are still the correct IDs for these elements.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .