// Following set of preferences replace the need 
// for most of the TabBrowser Preferences features
// Author: Dom Delimar, http://domdelimar.com/
//
// Usage: // All the preferences are Firefox default
// To make changes, simply modify the number or 
// true/false values and save the file in your Firefox
// profile (http://support.mozilla.com/en-US/kb/Profiles)

// LINKS
//General
//	Load Web browser links into a (new window=2, new tab=3, current tab=1)
user_pref("browser.link.open_newwindow", 3);
//	Load external links into a (new window=2, new tab=3, current tab=1)
user_pref("browser.link.open_external", 3);
//JavaScript Popups
//	Load these popups into existing windows (all popups=0, unresized popups=2, none=1)
user_pref("browser.link.open_newwindow.restriction", 2);
//	Divert these popup links into existing windows (all links):
// it seems it cannot be setup (?)
//Tab Locking
//	Force all left-clicked links to open in new tabs: // Tabbrowser pref only
	
// USER INTERFACE
//New Tab Button
//	When loading new tabs, load the (browser homepage=0, current webpage=1, blank page=2)
user_pref("browser.tabs.loadOnNewTab", 0);
//Load the following in the address bar
//	URLs in the address bar // Pref removed (unused))
//		Load this in the foreground // Tabbrowser pref only
//		Load this in the background // Tabbrowser pref only
//	Searches from the search bar
user_pref("browser.search.openintab", false); 

// DISPLAY OPTIONS
//Tab Display
//	Hide the tab bar when only one tab is open
user_pref("browser.tabs.autoHide", true);
//	Place the tabbar on the bottom of the window // Tabbrowser pref only
//	Show the New Tab button on the tab bar // Tabbrowser pref only
//	Disable the close button on background (unfocused) tabs // Firefox 2 only
//	Minimum width of tab (in pixels)
user_pref("browser.tabs.tabMinWidth", 30);
//	Show tab closure buttons (on the active tab=0, on all tabs=1, nowhere=2, on the tab strip=3) // Firefox 2 only
//	Minimum width of tab + close button (in pixels)
user_pref("browser.tabs.tabClipWidth", 140);
		
// FEATURES
//General
//	Load middle-clicked URLs in new tabs
user_pref("browser.tabs.opentabfor.middleclick", true);
//	Overwrite open tabs when loading tabbed bookmarks
user_pref("browser.tabs.loadFolderAndReplace", true);
//	Warn on closing a window with miltiple tabs open
user_pref("browser.tabs.warnOnClose", true);
//	Warn when opening multiple tabs at once
user_pref("browser.tabs.warnOnOpen", true); ????
//	Number of tabs that can be opened before warning is shown
user_pref("browser.tabs.maxOpenBeforeWarn", 15);
//Home Button
//	Open the home page in a (current tab=0, new tab=1, new tab, unfocused=2) // Tabbrowser pref only

// TAB FOCUS
//Load Focus
//	Load windows diverted into tabs in the background
user_pref("browser.tabs.loadDivertedInBackground", false);
//	Select owner of current tab when current tab is closed
user_pref("browser.tabs.selectOwnerOnClose", true);
//	Select new tabs opened from bookmarks or history
user_pref("browser.tabs.loadBookmarksInBackground", false);
//Mouse/Tab Focus
//	Select new tabs created by links
user_pref("browser.tabs.loadInBackground", true);
//	Do not select newly created tabs // Tabbrowser pref only
//	Select tabs when the mouse is moved onto them // Tabbrowser pref only
//	Mouseover selection delay // Tabbrowser pref only


