ghacks Technology News

Display back and forward buttons all the time in Firefox

By on January 29, 2013 - Tags:

Mozilla started to minimize the Firefox interface when Google Chrome started to gain traction. Recent versions of Firefox show only a single menu button, have done away with the status bar, merged the stop and reload button, and display the forward button only if there is a site in history that you can visit when you click on that button. That's only the case if you hit the back button at least once, and even thought it may seem logical to only display the back button and not the forward button at all times because of it, I do prefer to see both buttons permanently in the interface as it means that the interface won't be changed dynamically in the browser.

It is also not really clear why Mozilla is only hiding the forward button, as the back button has no functionality as well initially.

firefox forward back button screenshot

It is relatively easy to add the forward button back to Firefox so that it is displayed next to the back button at all times. Let me show you how that is done:

  • Load about:support in a tab in the Firefox web browser or select Firefox > Help > Troubleshooting Information from the menu.
  • Locate the profile folder entry and click on the Show Folder button. This should open the Firefox profile folder in the default file browser of the system.
  • Check if there is a Chrome directory here. If not, create it.
  • Open the Chrome directory and see if you have a userChrome.css file there. If not, create it.
  • Open the userChrome.css file and add the following lines of code to the end of it:

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url(chrome://browser/content/browser.xul) {
window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] > :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) > #unified-back-forward-button[forwarddisabled] + #urlbar-container > #urlbar {
margin-left: 0px !important;
border-left: 1px solid #b4c2cf !important;
}

window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] > :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) > #unified-back-forward-button:not(:hover) > #forward-button[disabled] ,
window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] > :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) > #unified-back-forward-button:hover > #forward-button[disabled] {
opacity: 1.0 !important;
margin-right: -2px !important;
}

window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] > :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) > #unified-back-forward-button > #forward-button[disabled] > .toolbarbutton-icon{
border-top:1px solid #869aad !important;
border-bottom:1px solid #869aad !important;
}

window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] > :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) > #unified-back-forward-button[forwarddisabled] #back-forward-dropmarker{
visibility:visible !important;
}
}

  • Restart Firefox afterwards.

You should now see both a back and forward button in Firefox's interface. (via Horst and MozillaZine.

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook, Twitter or Google+ using the icons below.




About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Responses so far:

  1. Krishna says:

    I just checked on my Firefox 18.0.1. Both buttons are visible and are working perfectly. Which version are you talking about ? Or is it because of my theme is Shine Bright Skin Aero ?

  2. Q says:

    The hiding of the Forward button started for Firefox 10 default theme. I do not know whether later series implemented the annoyance in the same place.

    Reshowing the forward button for Firefox 10 series was something I wanted to do and started to investigate, but ran short on time and the project was delayed.

    I had found the CSS code regarding the hiding of the Forward button was was not sufficiently familiar with CSS (I had not worked with it in quite a long time) and especially the newer CSS.

    After not proceeding for a while (way too busy), I found a lead by poster Straspey in the comments to your "Separate stop and reload in Firefox" article at http://www.ghacks.net/2013/01/22/separate-the-stop-and-reload-button-in-firefox/ . The Classic Toolbar Buttons extension had code that should disallow the hiding behavior of the Firefox Forward button.

    The CSS code posted in in this article is different than that from the Classic Toolbar Buttons 1.1.5 Firefox extension (there are newer version of the extension, but not that officially support Firefox 10 series or newer). I have not yet tested the various code with Firefox.

    Thanks a lot Martin.

  3. Guest says:

    You could just go to the "Customize" window and toggle on "Small Icons" to display both of the back and forward buttons again.

  4. RoseHosting says:

    This is an interesting finding.

Subscribe without commenting

© 2005-2013 Ghacks.net. All Rights Reserved. Privacy Policy - Disclaimer - About Us