Move or remove the close tab button in Firefox

A close button is shown on each tab of the Mozilla Firefox web browser by default. But if keep accidentally clicking on them, then you can move their position or remove them entirely. Here is how :

  1. Start Mozilla Firefox.
  2. Type about:config in the location bar and press Enter.
  3. Firefox will show a warning. Click on the button labeled I’ll be careful I promise. to proceed.
  4. In the Filter field type closeButtons. You would see a preference named browser.tabs.closeButtons as show,

    Move or remove Firefox tab close buttons

  5. Double click on browser.tabs.closeButtons to change its value. You can enter a value from 0 to 3. Here are the effects of the values :
    • 0 — displays a close button on the active tab only
    • 1 — displays close buttons on all the tabs (this is default value)
    • 2 — does not display any close buttons on any tab
    • 3 — display a single close button at the end of the tab bar
  6. After changing the value, restart the browser for the changes to take effect.