![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
Way to remove/hide back and forward button in tool bar?
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.
Zgjidhje e zgjedhur
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; }
- https://www.userchrome.org/how-create-userchrome-css.html
- https://www.userchrome.org/what-is-userchrome-css.html
Krejt Përgjigjet (4)
You can't remove them as your asking the only. The only change is using a "userChrome.css" to make any modifications.
How do I make modifications to userChrome.css?
Zgjidhja e Zgjedhur
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; }
This code worked for me:
@-moz-document url(chrome://browser/content/browser.xul) {
/* Your style rules for the user interface go here */
- back-button, #forward-button { display: none; }
}