Firefox hacks Get the open-source browser under your control with these insider tips.

Tip 1: Modify tabbed browsing
Tip 2: Use keyboard shortcuts
Tip 3: Make Firefox go fast

Tip 1: Modify tabbed browsing

Tabbed browsing is often touted as one of Firefox's killer features. Indeed, it's very useful, but the default preferences aren't perfect for everyone. That's OK, because Firefox offers plenty of preferences for customising your tabbed-browsing experience. If you can't find what you want in the preferences, you can go a step further by installing one of the many Firefox extensions that can make minor alterations to your tabs. Still not satisfied? The most aggressive of all the tab-related extensions, discussed at the end of this hack, completely replaces Firefox's tabs with its own.

Tabbed-browsing preferences
Firefox's preferences allow you to control how tabs respond to certain types of events. Some of the preferences are easily set in the Preferences window, while others require you to use the special About:config page in the browser. To find tabbed-browsing preferences in About:config, type tabs in the Search box at the top of the list.

Links from other applications
When a link is sent from another application, such as when you click a URL in an e-mail, what should the browser do? There are three options: open the page in a new window, open the page in a new tab in the front window, or replace the current page in the front window.

The options for this behaviour are shown at the top of the Tabbed Browsing panel in the Preferences window. If you ever feel the need to set this preference via About:config, look for browser.link.open_external. Setting this preference to 1 opens the link in the current tab and window, 2 opens it in a new window, and 3 opens it in a new tab in the front window.

Loading tabs in the foreground or background
There are three preferences that control whether new tabs load in front of the current tab or behind it. These preferences correspond to the three types of events that can open a new tab. Two can be set in the Preferences window (checked or true means "load in foreground"; unchecked or false means "load in background"), while the third requires the About:config page, described earlier in this hack:

  • Control-clicking (or Command-clicking) a link in the browser to open a new tab
    Set this in the Preferences window with the check box labelled "Select new tabs opened from links" or in About:config by changing browser.tabs.loadInBackground.
  • Opening a tab from a bookmark or the browser history panel
    In the Preferences window, this event is called "Select new tabs opened from bookmarks or history." In About:config, it's browser.tabs.opentabfor.bookmarks.
  • Opening a tab from a link sent by another application
    There is no check box in the Preferences window for this setting. In About:config, this preference is browser.tabs.loadDivertedInBackground.
  • Getting rid of tabs when there's only one
    This preference hides the tab bar at the top of the set of tabs when only one tab exists:

    browser.tabs.autoHide /* set to true to enable hiding */

  • Single Window mode
    Do you hate it when links on Web pages open new windows (because they set a target attribute on the link)? You can force Firefox to open those links in a new tab instead of a new window. This is called Single Window mode. It doesn't prevent all new windows, but it catches most of them. The radio buttons for setting this preference are in the Preferences window, but only if Firefox knows you want to see them. Go to About:config and set browser.tabs.showSingleWindowModePrefs to true.

Extensions that alter tabbed browsing
There are a number of Firefox extensions that interact with tabbed browsing. Two are designed to make it easier to set the preferences exactly as you like, and one adds some useful new features via the creative use of tabs and keystrokes. New extensions are being written all the time, so check the Mozilla Updates Web site for the latest additions.

  • Tabbrowser Preferences
    The Tabbrowser Preferences (TBP) extension, by Bradley Chapman, organises all of the preferences related to tabbed browsing into a single pane in the Preferences window. You can set all of the same preferences via the special About:config page, but by using TBP, you don't have to remember what the different preference names mean or what value to set in order to get the behaviour you want.
  • Quick Tab Pref Toggle
    The Quick Tab Pref Toggle (QTPT) extension, by Jed Brown, allows you to maintain two sets of tabbed-browsing preferences. The idea is that you'll usually want to divert all new windows into new tabs, but occasionally you'll work with a page that really should pop up a separate window. This extension lets you put a small button (a toggle) in the toolbar to flip back and forth between two sets of preferences with a single click.
  • Magpie
    Magpie, by lead Firefox developer Ben Goodger, is not a tabbed-browsing extension per se, but it has a related feature that demonstrates a completely different use for tabs. Magpie can save all of the tabs to the right of the one you're currently viewing to files on disk. (It's intended for media files, such as pictures.) For example, if you open a photo album Web page that contains thumbnails of a dozen pictures, you could Control-click (Command-click) each of them to open the full-size photos in separate tabs. Then, a single use of Magpie's Ctrl+Shift+S would save all of those images to disk in a single folder and close the tabs. This is much faster than saving each image to disk one at a time.

Tabbrowser Extension: a complete tabbing overhaul
The Tabbrowser Extension (TBE), by Shimoda "Piro" Hiroshi, is a power user's tool. It's the superultradeluxe tabbing system, with every feature you can imagine and a few you probably can't. TBE completely replaces the built-in browser tabs with TBE's own. Review the install notes and latest status, as TBE is still being polished and debugged as this goes to print.

TBE's tabs look just like the regular tabs in Firefox (by default, anyway) but offer lots of features you simply can't get any other way. In fact, TBE is so flexible that the Preferences window for tweaking its behaviour has almost as many options as Firefox's own Preferences window! TBE allows you to do the following things:

  • Rearrange tabs by dragging them to the left or right
  • Duplicate tabs in the same window or into a new window
  • Colour your tabs
  • Display tabs on any side of the browser window (not just the top)
  • Automatically load the same group of tabs you were using when you last quit Firefox
  • Undo a closed tab (reopen it to the same page)
  • Lock a tab so that all links within it automatically open in a new tab
  • Block the page in a specific tab from being listed in the Referer: header when you click a link
  • Automatically reload a tab every n seconds, minutes, or days
  • Add a Close button to every tab
  • Loads more...

Like this article? Click below to send it to your mobile for free!

nebryall
14/01/2007 08:22 AM

Firefox is blocking Yahoo Messenger from opening. can you help me?

Report offensive content

  • Leave a comment

All fields marked with * are required

What do you think

Your e-mail will not be displayed

You must read and type the 6 chars within 0..9 and A..F

You must read and type the 6 chars.


  • Gmail gets colourful themes

  • Kevin Rudd joins Twitter

  • Gmail gets voice, video chat

  • Google, Telstra sign deal for Yellow Maps

  • Sensis kills its search, uses Google

  • Oi!: MTV Music is, like, the raddest thing ever

  • Britney arrives on Twitter

  • Oi!: An end to drunken, embarrassing emails?

  • Adobe Dreamweaver CS4

More articles »

Find the right software

Brand
  • Multiple options can be selected

    • Adobe Dreamweaver CS4

      Adobe Dreamweaver CS4

      Designers and editors who lean on Dreamweaver for complex dynamic websites will find plenty of tweaks and improvements in version 4.

    • Chrome (beta)

      Chrome (beta)

      Google has rethought the Internet browser — some of its basic underpinnings are quite novel — but users will recognise some features as they exist in other, open-source browsers on the market today.

    • Internet Explorer 8 Beta 2

      Internet Explorer 8 Beta 2

      Microsoft's release should retain its browser base but doesn't yet have enough to lure loyal Firefox users back to Internet Explorer.

    • MobileMe

      MobileMe

      MobileMe is the successor to .Mac, Apple's subscription service for publishing photos and other personal content to the Web.

    • Firefox 3

      Firefox 3

      If only for the speed, lightness of being and security alone, Firefox remains our Editors' Choice for best internet browser.

    More reviews »

    Membership benefits

    Create wishlists

    Create wishlists

    See a product on CNET Australia that you want? Add it to your wishlist and send a hint to your friends and family. Sign up for a free CNET Australia membership now!