This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Way to remove/hide back and forward button in tool bar?

  • 4 iimpendulo
  • 1 inayo le ngxaki
  • 86 views
  • Impendulo yokugqibela ngu sillyputty1967

more options

Hi all,

Is there a way to hide both the back and forward buttons in the toolbar on macOS Firefox 66.0.2 (64-bit)? As it is, customizing toolbars does not allow their removal.

Hi all, Is there a way to hide both the back and forward buttons in the toolbar on macOS Firefox 66.0.2 (64-bit)? As it is, customizing toolbars does not allow their removal.

Isisombulu esikhethiweyo

Add code to the userChrome.css file below the default @namespace line.


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

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

Funda le mpendulo kwimeko leyo 👍 0

All Replies (4)

more options

You can't remove them as your asking the only. The only change is using a "userChrome.css" to make any modifications.

more options

How do I make modifications to userChrome.css?

more options

Isisombululo esiKhethiweyo

Add code to the userChrome.css file below the default @namespace line.


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

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

more options

This code worked for me:

@-moz-document url(chrome://browser/content/browser.xul) {

 /* Your style rules for the user interface go here */
  1. back-button, #forward-button { display: none; }

}