Firefox - Tips & Tricks

UI Tweaker (Formerly Toolbar Cleanup)

If upgrading from a previous version please to do the following or the extension will now work:
1) Type 'about:config' in the location bar and hit enter
2) Paste this in the blank bar or scroll down to find 'extensions.toolbarcleanup.findbarchanges'
3) Right click on this and select 'reset' and restart firefox and extension will work again
Sorry about that, I deleted the file it calls on and I forgot when you upgrade it doesnt remove old entries from about:config.
This extension allows you to tweak various aspects of the browser's UI.
This extension allows you to do the following via Tools->Extensions->UI Tweaker Options:
- Remove 'For Internet Explorer Users' from the Help menu
- Remove 'Release Notes' from the Help menu
- Remove 'Go' menu
- Remove 'Read Mail (* new)' and 'New Messages...' from the Tools menu (1.5 Only)
- Remove 'Web Search' from the Tools menu
- Remove 'Bookmark Toolbar Folder' from the Bookmarks menu (Only if empty)
- Remove the 'Go' button
- Remove the toolbar separators
- Remove the forward and back button drop down arrows
- Remove the close button from tabbar (1.5 Only)
- Make the address bar corners slightly rounded
- Hide the Search Bar except for the site icon until mouse hover over
- Multi-row bookmarks toolbar
- Show only icons on the bookmark toolbar
- Make non-selected tabs less visible, making active tabs stand out more
- Remove white line under unfocused tabs
- Remove the focus rings around the tab titles
- Show tab favicon only on selected tab
- Relocate the tabbar to the bottom
- Remove the tabbar close button and place on active or hoverd over tabs (1.5 Only)
- Add separators, bold text on status message and other small changes
- Add a keyword when adding a bookmark
- Move the sidebar to the bottom
- Remove the security padlock icon in the statusbar
- Remove the RSS Feed icon from the location bar
- Remove the Min/Max/Close buttons while in Full Screen mode
- Remove the bookmark sidebar search bar
- Remove the location bar drop down arrow

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6.4 - Works with Firefox 1.5, branch and trunk nightlies.
Changelog:
- Fixed a spelling error in description
- Updated the extension description
- Tweaked a bunch of hack descriptions
- Changed any instance of address bar to location bar
- Added a hack to remove the security padlock icon in the statusbar
- Added a hack to remove the RSS Feed icon from the location bar
- Added a hack to remove the Min/Max/Close buttons while in Full Screen mode
- Added a hack to remove the Bookmark Sidebar Search Bar
- Added a hack to remove the Location Bar drop down arrow
- Split the Find Bar hack into 5 separate hacks:
- Remove the findbar borders
- Widen the findbar input field
- Add a separator between the close button and find:
- Add a separator between highlight all and the match case check box
- Make the status messages bold/input field light red when phrase not found

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6.3 - Works with Firefox 1.5, branch and trunk nightlies.
Changelog:
- Added icons in the options menu
- Some spelling error corrections

Hacks that are missing/broke from the latest 1.6.3 version
- Multi-row bookmarks toolbar isn't working for some
- No combined stop/reload button
- Missing Add 'Print' to right-click context menus, allowing users to print via the context menus

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6.2 - Works with Firefox 1.5, branch and trunk nightlies.
Changelog:
- Fixed bug in which only the separator and not the bookmarks toolbar folder was removed from the bookmarks menu

Hacks that are missing/broke from the latest 1.6.2 version
- Multi row bookmarks toolbar isn't working for some
- No combined stop/reload button
- Missing Add 'Print' to right-click context menus, allowing users to print via the context menus
- Needs icons in the options dialog

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6.1 - Works with Firefox 1.5, branch and trunk nightlies.
Changelog:
- Fixed bug in which the remove drop arrows for back/forward buttons and round addressbar hacks were swaped in the options dialog.
- Added back hack for tab close button on tabs (1.5 Only)
- Added back hack for removing Read mail from the Tools menu (1.5 Only)
- Tweaked the extension's description
- Tweaked a couple hack descriptions
- Added a contributor (Pike) to the about dialog

Hacks that are missing/broke from the latest 1.6.1 version
- Multi row bookmarks toolbar isn't working for some
- No combined stop/reload button
- Missing Add 'Print' to right-click context menus, allowing users to print via the context menus
- Needs icons in the options dialog

UI Tweaker (Formerly known as Toolbar Cleanup) v1.6 - Works Firefox 1.5, branch and trunk nightlies.
Changelog:
- Added a working options dialog (Everything is customizeable now!!!)
- Renamed the extension to UI Tweaker (Did not change the guid so no need to uninstall and install this version
- Added hack for icons only on the bookmark toolbar
- Added hack for relocating the tabbar on the bottom
- Added hack for disabling autocomplete in the search bar, location bar and html input fields
- Removed hack for removing 'Read Mail (* New)' and 'New Message...' from Tools menu (No longer needed since this is in the branch/trunk nightlies....Please let me know if this is needed for 1.5.0.*)
- Added hack to remove the bookmark toolbar folder from bookmarks menu (will only work if empty)
- Added hack to remove the back/forward drop down arrows
- Added hack to add a keyword when adding a bookmark
- Added hack to move the sidebar to the bottom

Hacks that are missing/broke from the latest 1.6 version
- When make non selected tabs less visible + remove white line under tab are used together the non select tabs are pink. but if you use the remove close tab button then everything is fine
- Multi row bookmarks toolbar isn't working for some
- No combined stop/reload button
- Missing Add 'Print' to right-click context menus, allowing users to print via the context menus
- Needs icons in the options dialog
These are short and simple tips to make browsing easier. They require no "hacking" files or changing configuration. Middle-click refers to pushing down the mouse wheel in the center of your mouse, if your mouse wheel does not support middle-clicking then crtl+left-click works the same. Laptops utilize both left+right-click as the middle-click button.

Open a blank 'New Tab'
Double-click empty space on the Tab Bar

Open a bookmark in a new tab
Middle-click on the bookmark

Close a tab
Middle-click on the tab will close it

Open your homepage in a new tab
Middle-click on the homepage button to open your homepage in a new tab

Navigate tabs with the keyboard
Ctrl+Tab to navigate tabs to the right.
Crtl+Shift+Tab to navigate the tabs to the left.
Even quicker way is Ctrl+[# of tab]

Set mutliple Home pages
Tools---->Options--->General and seperate each page with the pipe | symbol
(Shift+button above the enter button)
eg. http://forums.mozillazine.org|http://www.google.com|Link:

Rearrange add/remove Icons on the toolbar
Toolbars: View--->ToolBars--->Customize

Let Firefox complete web addresses for you
Type in something like 'yahoo' in the address bar and hit:
Ctrl+Enter to add Link:. before and .com after the text
Similarly, Shift+Enter will add Link:. and .net
and Ctrl+Shift+Enter will add Link:. and .org

Bookmark the current page
3 Simple ways:
Hit Ctrl+D,
drag the icon from the location bar to your Bookmarks folder,
or you can drag the icon to the desktop to make an shorcut for that page

Increase/Decrease font size
Hold Ctrl AND press + or -

Save all open tabs in a bookmark folder
Ctl-D or Bookmarks--->Bookmark This Page, select the "bookmark all tabs in a folder"
then select or create a folder

Stop animated gifs from moving
Press the ESC key

Bookmark an Livebookmark (RSS Feed) if the site offers them
Click the orange button on the status bar and select 'subscribe to rss feed'

Add a keyword for a bookmark
You can give "keywords" to your bookmarks by right-clicking the bookmark and then
Properties. If you put a string in the keyword field now you can type that keyword in
the address bar and it will go to that bookmark. For example, if I have a bookmark for
Fox News website, I might give it the keyword "news". Now, when I type "news" in the
address bar and hit 'enter', the Fox News site is loaded.

Quickly do a search on a word
Highlight a word and drag it up to the search bar and it will do a search for that word
using whatever search engine you currently have selected. Also can right click the
highlighted word and select 'Search Web for "foo"'
You can use these hacks to change the appearance of Firefox by hiding menus, hiding the separator bars, removing menus or even move the tabbar to the bottom.

This file does not exist by default, so you will have to create it yourself the first time. If you can't find the location in the chart I give you, make sure you are able to view your hidden folders/files, since I know XP for sure hides them.

To create the userChrome.css file in windows: Open a text editor (notepad or wordpad) and save the file as "userChrome.css" into a directory listed below according to the OS your using. To edit userChrome.css after it's created just right click on the file and select 'Edit', then edit the file using wordpad or notepad.

Locations to create the userChrome.css file:

Quote:
95/98/ME --- c:windowsApplication DataPhoenixProfiles[profile-name][#s].sltchrome
NT --- %UserProfile%Application DataPhoenixProfiles[profile-name][#s].sltchrome
2000/XP --- C:Documents and Settings[USER]Application DataMozillaFirefoxProfilesdefault.teachrome
*NIX --- ~/.phoenix/[profile-name]/[#s].slt/chrome/

Now that thats out of the way it's time to customize Firefox behind the scenes. All you have to do is copy and paste these settings on a new line in the userChrome.css file and save the file. Next time you open up Firefox the settings will be applied until you delete the setting out of the userChrome.css file.

/* Remove separators between toolbars*/

Quote:
#toolbar-menubar {
min-height: 12px !important;
padding: 0px !important;
margin: 0px !important;
border: none !important;
}
#nav-bar {
border: none !important;
padding: 0px !important;
}
#PersonalToolbar {
border: none !important;
}
#navigator-toolbox {
border-bottom-width: 0px !important;
}

/* Remove Bookmark Toolbar folder from the bookmarks menu */

Quote:
menu[label="Bookmarks Toolbar Folder"] { display: none !important; }

/* Add a keyword when adding a bookmark */

Quote:
#keywordRow { display: -moz-grid-line !important; }

/* Move sidebar to bottom */

Quote:
#browser {-moz-box-orient: vertical; -moz-box-direction: reverse}
#sidebar-box {-moz-box-orient: horizontal; -moz-box-direction: reverse}
#appcontent {-moz-box-orient: horizontal}
#sidebar {max-width: inherit !important; min-height: inherit !important}
#sidebar-box > sidebarheader {
-moz-box-orient: vertical;
-moz-box-direction: reverse;
-moz-box-pack: end;
border-left: 1px solid ThreeDHighlight;
margin-left: 1px;
}
#sidebar-box .tabs-closebutton > .toolbarbutton-icon {
padding: 4px 2px !important
}
#sidebar-title {display: none}
#sidebar-throbber {margin-left: 4px}

/* Remove the close button on the tab bar and sidebar */

Quote:
.tabs-closebutton { display: none !important; }

/* Hide Tabbar close Button */

Quote:
tabbrowser .tabs-closebutton-box {
display: none; }

/* Remove Stop button when there's nothing to Stop */

Quote:
#stop-button[disabled="true"] { display: none; }

/* Remove Back button when there's nothing to go Back to */

Quote:
#back-button[disabled="true"] { display: none; }

/* Remove Forward button when there's nothing to go Forward to */

Quote:
#forward-button[disabled="true"] { display: none; }

/* Multi-row bookmarks toolbar */

Quote:
#bookmarks-ptf {display:block}
#bookmarks-ptf toolbarseparator { display:inline }

/* Make the active tab not bold */

Quote:
tab[selected="true"] { font-weight: normal !important; }

/* Show tab favicon only on selected tab */

Quote:
tab:not([selected="true"]) .tab-icon {
display: none !important; }

/* Make inactive tabs hardly visible */

Quote:
#content tab:not([selected="true"]) {
-moz-opacity: 0.5 !important; }

/* Remove extra padding from the Navigation Bar */

Quote:
.toolbarbutton-1, .toolbarbutton-menubutton-button {
padding: 2px 3px !important;
}
.toolbarbutton-1[checked="true"], .toolbarbutton-1[open="true"],
.toolbarbutton-menubutton-button[checked="true"],
.toolbarbutton-menubutton-button[open="true"] {
padding: 4px 1px 1px 4px !important; }

/* Remove focus rings (dotted rectangle) around active tabs */

Quote:
tab:focus > .tab-middle { -moz-outline: none !important }

/* Remove white line under unfocused tab */

Quote:
tab{
-moz-appearance: none !important;
border-bottom: none !important; }

/* Hide the Go menu */

Quote:
menu[label="Go"] {
display: none !important; }

/* Hide read mail from Tools Menus */

Quote:
menuitem[label="Read Mail (0 new)"] { display: none; }
menuitem[label="Read Mail (0 new)"] + menuseparator { display: none; }
menuitem[label="New Message..."] { display: none; }
menuitem[label="New Message..."] + menuseparator { display: none; }

/* Remove Web Search from Tools Menu */

Quote:
menuitem[label="Web Search"] { display: none; }
menuitem[label="Web Search"] + menuseparator { display: none; }

/* Hide For Internet Explorer Users & Release Notes from Help Menu */

Quote:
menuitem[label="For Internet Explorer Users"] { display: none; }
menuitem[label="Release Notes"] { display: none; }

/* Slightly rounded address and search bar corners */

Quote:
#urlbar {
-moz-appearance: none !important;
-moz-border-radius: 3px !important;
padding-right: 1px !important; }

/* Remove the 'Go' button */

Quote:
#go-button {
display: none !important; }

/* Remove the forward and back button dropdown arrows */

Quote:
#back-button .toolbarbutton-menubutton-dropmarker,
#forward-button .toolbarbutton-menubutton-dropmarker {
display: none !important; }

/* Rollover Searchbar */

Quote:
#search-container {
margin: 0 1px 0 0 !important;
padding: 0 0 0 5px!important;
}
#search-container .searchbar-textbox,
#search-container .textbox-input-box {
margin: 0 !important;
padding: 0 !important;
}
#search-container .searchbar-dropmarker {
margin: 1px 0 0 1px !important;
padding: 0 !important;
}
#search-container * {
width: auto !important;
}
#search-container .textbox-input-box {
width: 0 !important;
}
#search-container:hover .textbox-input-box {
/* width: auto !important; */
width: 200px !important;
padding: 0 0 0 5px !important;
}
#search-container .searchbar-textbox {
-moz-appearance: none !important;
border: 0 !important;
background-color: -moz-dialog !important;
}
#search-container:hover .searchbar-textbox {
-moz-appearance: textfield !important;
-moz-border-radius: 5px !important;
background-color: -moz-field !important; }

/* Find Toolbar Changes enhancements*/
#FindToolbar {
border: 0 !important;
border-top: 0px solid !important;
}
window:not([windowtype="navigator:view-source"]) #FindToolbar {
border-bottom: 0px solid !important;
}
#FindToolbar #find-closebutton:hover {
border-color: transparent !important;
background-image: none !important;
}
#FindToolbar label[value="Find:"] {
margin: 0 !important;
padding: 2px 2px 3px 5px !important;
border-left: 2px solid !important;
-moz-border-left-colors: ThreeDShadow ThreeDHighlight !important;
}
#FindToolbar #find-field-container {
margin: 0 2px !important;
padding: 0 !important;
}
#FindToolbar #find-field {
margin: 0 !important;
padding: 0 0 0 2px !important;
width: 200px !important;
}
#FindToolbar #find-field[status="notfound"] {
color: rgb(0, 0, 0) !important;
background-color: rgb(255, 240, 224) !important;
}
#FindToolbar checkbox {
margin: 0 2px !important;
padding: 2px 0 1px 4px !important;
border: 0 !important;
border-left: 2px solid !important;
-moz-border-left-colors: ThreeDShadow ThreeDHighlight !important;
}
#FindToolbar checkbox .checkbox-label-box {
margin: 0 !important;
padding: 0 0 0 3px !important;
}
#FindToolbar #find-status-icon[status] {
margin: 0 0 0 2px !important;
padding: 1px 0 1px 4px !important;
width: 22px !important;
height: 18px !important;
border: 0 !important;
border-left: 2px solid !important;
-moz-border-left-colors: ThreeDShadow ThreeDHighlight !important;
}
#FindToolbar #find-status {
font-weight: bold !important; }
The userContent.css file sets the display rules for web content.

This file does not exist by default, so you will have to create it yourself the first time. If you can't find the location in the chart I give you, make sure you are able to view your hidden folders/files, since I know XP for sure hides them.

To create the userContent.css file in windows: Open a text editor (notepad or wordpad) and save the file as "userContent.css" into a directory listed below according to the OS your using. To edit userContent.css after it's created just right click on the file and select 'Edit', then edit the file using wordpad or notepad.

Locations to create the userContent.css file:

Quote:
95/98/ME --- c:windowsApplication DataPhoenixProfiles[profile-name][#s].sltchrome
NT --- %UserProfile%Application DataPhoenixProfiles[profile-name][#s].sltchrome
2000/XP --- C:Documents and Settings[USER]Application DataMozillaFirefoxProfilesdefault.teachrome
*NIX --- ~/.phoenix/[profile-name]/[#s].slt/chrome/

Now that thats out of the way it's time to customize Firefox behind the scenes. All you have to do is copy and paste these settings on a new line in the userContent.css file and save the file. Next time you open up Firefox the settings will be applied until you delete the setting out of the userContent.css file.

/* Change cursor for links that open in new window */

Quote:
:link[target="_blank"],
:visited[target="_blank"],
:link[target="_new"],
:visited[target="_new"] {
cursor: crosshair; }

/* Force text to wrap when it is longer than the screen width */

Quote:
pre { white-space:-moz-pre-wrap }
Open Firefox 1.0 and in the address bar type: about:config

1. Find browser.tabs.showSingleWindowModePrefs and double click on it so it = true
2. Find network.http.pipelining and double click on it so it = true
3. Find network.http.pipelining.maxrequests double click on it and change it from 4 to 100

What do these changes do?
1. Then enables advanced tab options in your Tools/Options page
2. This enables option #3.
3. This makes FF use 8 threads to each page.. Bascially, if you thought FF was fast before, try it after this.


u dont need to do step one if u have new firefox version.
This contains various tips and tricks for Firefox. Most of these tips involve editing of text files on your hard drive and is not recommended if you're not familiar with basic file and folder usage. The tips are divided into four categories and sorted by importance/popularity.
Contents

* Browser Appearance
o Use Windows XP styled menus
o Use Windows Classic (9x/Me/2000) styled menus
o Use your own background image for the toolbars
o Make the active tab easier to distinguish
o Don't use bold text on the active tab
o Remove the close button from the tab bar
o Remove items from the main menu
o Remove extra padding from the Navigation Toolbar
o Change the window icon
o Display Sidebar on the right
o Change the width of the Search Bar
* Browser Behavior
o Open external links in new windows or tabs
o Reveal More Tab/Window Options
o Decide which New Windows to Block
o Tweak Find As You Type
o Disable Other JavaScript Window Features
o Use your Netscape 6/7 or Mozilla bookmarks in Firefox
o Change the search mode in the address field
o Disable Bookmark Icons
o Change the Activity Indicator URL
o Prevent URLs from being saved in Location Bar
o Prevent sites from disabling the context menu
* Web Page Appearance
o Ad Blocking
o Disable blinking elements
o Disable tags
o Force resizable frames
o Change the cursor for links that open in new window
o Change the cursor for JavaScript links
* Other Tips
o Change language on web pages
o Run Firefox from removable media
o Select and copy individual table cells
o Speed up page rendering
o Enable Pipelining
o Specify where to store the cache
o Specify the memory cache usage

Browser Appearance

Use Windows XP styled menus

If you are running Windows XP and want your menus to fit in with the default (Luna) style, add the following code to your userChrome.css file:

/* Make menus XP style */
menupopup, popup {
border: 1px solid ThreeDShadow !important;
-moz-border-left-colors: ThreeDShadow !important;
-moz-border-top-colors: ThreeDShadow !important;
-moz-border-right-colors: ThreeDShadow !important;
-moz-border-bottom-colors: ThreeDShadow !important;
padding: 2px !important;
background-color: Menu !important;
}
menubar > menu {
border: 1px solid transparent !important;
padding: 2px 5px 2px 7px !important;
margin: 0 !important;
}
menubar > menu[_moz-menuactive="true"] {
background-color : Highlight !important;
color: HighlightText !important;
}

Use Windows Classic (9x/Me/2000) styled menus

If you want the menus to appear native to the Windows Classic appearance, add the following code to your userChrome.css file:

/* Windows Classic (9x/Me/2000) style Menus */
menupopup, popup {
border: 2px solid !important;
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
padding: 1px !important;
}
menubar > menu[disabled="true"] {
border: 1px solid transparent !important;
}
menubar > menu[_moz-menuactive="true"] {
border-top: 1px solid ThreeDHighlight !important;
border-right: 1px solid ThreeDShadow !important;
border-bottom: 1px solid ThreeDShadow !important;
border-left: 1px solid ThreeDHighlight !important;
background-color: transparent !important;
color: MenuText !important;
}
menubar > menu[_moz-menuactive="true"][open="true"] {
border-top: 1px solid ThreeDShadow !important;
border-right: 1px solid ThreeDHighlight !important;
border-bottom: 1px solid ThreeDHighlight !important;
border-left: 1px solid ThreeDShadow !important;
}

Use your own background image for the toolbars

In addition to changing themes, you can personalize Firefox even more by using your own toolbar background image. Add the following code to your userChrome.css file:

/* Use a background image for the toolbars:
(Substitute your image file for background.gif) */

menubar, toolbox, toolbar, .tabbrowser-tabs {
background-image: url("background.gif") !important;
background-color: none !important;
}

It's easiest to place the image file in the same location as the userChrome.css file. The image can be of any image format supported by Firefox.
Make the active tab easier to distinguish

In order to make the active tab easier to distinguish among the currently opened tabs, you can also change the colors for the tabs. Add the following code to your userChrome.css file:

/* Change color of active tab */
tab{
-moz-appearance: none !important;
}
tab[selected="true"] {
background-color: rgb(222,218,210) !important;
color: black !important;
}

/* Change color of normal tabs */
tab:not([selected="true"]) {
background-color: rgb(200,196,188) !important;
color: gray !important;
}

Don't use bold text on the active tab

If you don't want the title of the active tab to be bold, add the following code to your userChrome.css file:

/* Make the active tab not bold */
tab[selected="true"] {
font-weight: normal !important;
}

Remove the close button from the tab bar

You can remove the close button from the tab bar by adding the following code to your userChrome.css file:

/* Remove the close button on the tab bar */
.tabs-closebutton-box {
display: none !important;
}

You can still close tabs by right clicking on them and select Close Tab, or by pressing Ctrl+W
Remove items from the main menu

Some people like to place all their toolbar items on the same row as the menu. In order to save horizontal space, you can remove top menu items that you don't use. Add the following code to your userChrome.css file:

/* Remove the Go and Help menus
(These are just examples. Try changing "Go" to "Edit" or "Bookmarks") */
menu[label="Go"], menu[label="Help"] {
display: none !important;
}

Remove extra padding from the Navigation Toolbar

This tip will make the toolbars use less space around the buttons, allowing Firefox to use more space for the actual webpages. This also affects additional toolbars such as the Googlebar. Add the following code to your userChrome.css file:

/* Remove extra padding from the Navigation Bar */
.toolbarbutton-1, .toolbarbutton-menubutton-button {
padding: 2px 3px !important;
}
.toolbarbutton-1[checked="true"], .toolbarbutton-1[open="true"],
.toolbarbutton-menubutton-button[checked="true"],
.toolbarbutton-menubutton-button[open="true"] {
padding: 4px 1px 1px 4px !important;
}

Change the window icon

You can change Firefox's default window icon to any icon you want, by following these steps:

1. Go to the folder you installed Firefox in (e.g. C:Program FilesMozilla Firefox) and then go to the subfolder chrome.
2. While in chrome, create a new subfolder called icons, then go to that folder and create yet another subfolder called default. The full path to this folder could be C:Program FilesMozilla Firefoxchromeiconsdefault.
3. Choose the icon you want to use (on Windows use .ico files, on Linux use .xpm files) and then place it in this folder and rename it to main-window.[ext], e.g. main-window.ico on Windows and main-window.xpm on Linux.

In addition to the main window, you can also change the icon on the Bookmark Manager and JavaScript Console. The icon names are bookmark-window.[ext] and jsconsoleWindow.[ext], respectively.

After this is done, restart Firefox and you should be able to see your chosen icon in the title of the browser windows.
Display Sidebar on the right

To display the Sidebar on the right side of the window instead of the left, add the following code to your userChrome.css file:

/* Place the sidebar on the right edge of the window */
window > hbox {
direction:rtl;
}
window > hbox > * {
direction:ltr;
}

Change the width of the Search Bar

By default, the Search bar on the toolbar is relatively small. To specify your own width in pixels, add the following code to your userChrome.css file:

/* Make the Search box flex wider
(in this case 400 pixels wide) */
#search-container, #searchbar {
-moz-box-flex: 400 !important;
}

Back to Top
Browser Behavior

Open external links in new windows or tabs

If another program wants to display a web page in the default browser, Firefox will reuse an existing window by default, which means that it will navigate from a page you might be reading. To stop this, Go to Tools > Options... (Edit > Preferences... under Linux and Mac OS X), select Advanced and click on Tabbed Browsing. Under "Open links from other applications in:", you can choose the alternative you prefer.
Reveal More Tab/Window Options

There are some hidden options for the Tabbed Browsing that will allow you to force links that open new windows to open in the current or a new tab. First, add the following code to your user.js file:

// Reveal more tab/window options:
user_pref("browser.tabs.showSingleWindowModePrefs" , true);

Restart Firefox and go to Tools > Options... (Edit > Preferences... under Linux and Mac OS X), select Advanced and click on Tabbed Browsing. The following options should be visible:
Force links that open new windows to open in:
the same tab/window as the link
a new tab

The options should be self-explanatory.
Decide which New Windows to Block

In the tip above, you learned how to reveal the Force links that open new windows... option. If you activated this, all windows that a web page wants to open will be diverted to either the current tab/window or a new tab. However, this also applies to small pop-up windows (e.g. a poll results window or the ICQ window in go.icq.com), which really should be opened in a new window. To change this behavior so it doesn't divert new windows that are spawned by JavaScript, add the following code to your user.js file:

/* Force New Windows Restrictions
0: Default - Divert *all* new windows to current tab/window or new tab
1: Don't divert *any* windows spawned by JS
2: Don't divert JS windows that include size/placement/toolbar info */
user_pref("browser.link.open_newwindow.restriction ", 2);

Tweak Find As You Type

Find As You Type has a few hidden preferences that can be changed to better fit your needs. Add the following prefs to your user.js file:

// Find As You Type Configuration:
// Set this pref to false to disable Find As You Type:
user_pref("accessibility.typeaheadfind", true);
// If you set this pref to true, typing can automatically start Find As You Type.
// If false (default), you must hit / (find text) or ' (find links) before your search.
user_pref("accessibility.typeaheadfind.autostart", true);
// Set this pref to false if you want Find As You Type to search normal text too:
user_pref("accessibility.typeaheadfind.linksonly", true);
// Set this pref to true if you require that the link starts with the entered text:
user_pref("accessibility.typeaheadfind.startlinkso nly", false);
// This is the time in milliseconds for the Find As You Type to stop watching for keystrokes:
user_pref("accessibility.typeaheadfind.timeout", 3000);

For information about what Find As You Type is, read the documentation.

Disable Other JavaScript Window Features

Firefox has a few options that allow you to decide what scripts can and can not do with windows. These options are available from Tools > Options > Web Features > Advanced. However, this list of options doesn't cover them all. There are some other useful options which can be applied by adding the following code to your user.js file:

// More DOM/JavaScript options
// Make sure all pop-up windows are resizable:
user_pref("dom.disable_window_open_feature.resizab le", true);
// Make sure all pop-up windows are minimizable:
user_pref("dom.disable_window_open_feature.minimiz able", true);
// Always display the menu in pop-up windows:
user_pref("dom.disable_window_open_feature.menubar ", true);
// Always display the Navigation Toolbar in pop-up windows:
user_pref("dom.disable_window_open_feature.locatio n", true);
// Prevent sites from disabling scrollbars:
user_pref("dom.disable_window_open_feature.scrollb ars", true);

Use your Netscape 6/7 or Mozilla bookmarks in Firefox

If you are using Netscape 6/7 or Mozilla, you can share your bookmarks with Firefox. All bookmarks are stored in a file called bookmarks.html and is stored in the profile folder. For example, if you want to use the bookmarks for Netscape 7 in Firefox, add the following code to your user.js file:

// Specify which bookmarks file to use:
user_pref("browser.bookmarks.file", "C:Path To Netscape Profilebookmarks.html");

Remember to use two backslashes for the path separators if you're using Windows, e.g. C:Pathbookmarks.html instead of C:Pathbookmarks.html.

This tip can also be used on dual-boot systems to use the same bookmarks on both operating systems. Just make sure that you place the file on a location that you have write access to from operating systems.
Change the search mode in the address field

By default, if you enter a search term in the address field and press Enter, a Google "I'm Feeling Lucky" search is performed, and you're taken to the first result of that search directly. If you prefer to see the standard search result list instead, add the following code to your user.js file:

// Change to normal Google search:
user_pref("keyword.URL", "http://www.google.com/search?btnG=Google+Search&q=");

Of course, you could also change to a completely different search engine by changing the string to something else. The default search string is: "http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=".
Disable Bookmark Icons

You can disable the display of bookmark icons and "favicons" by adding the following code to your user.js file:

// Disable Bookmark Icons
user_pref("browser.chrome.site_icons", false);
user_pref("browser.chrome.favicons", false);

Change the Activity Indicator URL

When you click on the Activity Indicator (also known as the "throbber"), you are directed to the Firefox Start Page. This can be changed to any URL by adding the following code to your user.js file:

// Click on throbber to go to Mozilla.org:
user_pref("browser.throbber.url", "http://www.mozilla.org/");

Prevent URLs from being saved in Location Bar

Firefox allows you to prevent URLs from being saved in the pull-down menu for the Location Bar. This restriction helps protect user privacy and prevent users from "stumbling" into sites that other users had previously viewed.

Andrew Mutch has written a page explaining how to implement this restriction. Read it here.
Prevent sites from disabling the context menu

Some sites prevent you from right-clicking on the page to show the context menu. This bookmarklet will disable such attempts with just a single click. Drag the following link to the Bookmarks Toolbar Folder in Firefox, or to your Bookmarks menu, to create a bookmark:

Enable Context Menu

Alternatively, right-click on the link and select Bookmark This Link....

Back to Top
Web Page Appearance

Ad Blocking

Advertisements on websites are annoying, often breaking up text and flashing to get your attention. There is a neat trick that you can use to block most of the ads on Web pages.

Because of the length of the code in this tip, it is available in a separate page.
Disable blinking elements

You probably just find the blinking above annoying. To stop it, add the following code to your user.js file:

// Put an end to blinking text!
user_pref("browser.blink_allowed", false);

Disable tags

Some sites using scrolling marquee tags. If you don't find them useful, add the following code to your userContent.css file:

/* Stop those tags! */
marquee {
-moz-binding : none !important;
display : block;
height : auto !important;
}

If you added the code, this text should not scroll after restarting Firefox.
Force frames to be resizable

Many sites use frames to display their contents, and sometimes the frames are too small. To force all frames to be resizable, add the following code to your user.js file:

// Force frames to be resizable
user_pref("layout.frames.force_resizability", true);

Note that this will also make the frames appear with a fixed-width border and thus, may make the pages look funny.
Change the cursor for links that open in new window

This neat trick will change the mouse pointer when you hover it over links that will open a new window. Add the following code to your userContent.css file:

/* Change cursor for links that open in new window */
:link[target="_blank"], :visited[target="_blank"],
:link[target="_new"], :visited[target="_new"] {
cursor: crosshair;
}

Change the cursor for JavaScript links

This tip will change the mouse pointer when you hover it over links that will perform a JavaScript command. Add the following code to your userContent.css file:

/* Change cursor for JavaScript links */
a[href^="javascript:"] {
cursor: move;
}

Back to Top
Other Tips

Change language on web pages

Some web sites offer content in multiple languages. You can choose several languages in Firefox and they will be treated in order of priority. In order to change the priority, just go to Tools > Options..., select the General section and click the Languages button.
Run Firefox from removable media

This advanced tip makes it possible to run Firefox from removable media, such as a USB memory stick. This will allow you to run Firefox with your personal settings from any computer, even those that don't have Firefox installed. It has only been tested on Windows XP/2000. The basic instructions are as follows:

1. Copy the Firefox application folder and your profile folder to the removable medium. In this example we will use R:Firefox for the application folder and R:FFProfile as the profile folder, assuming the drive letter for the removable media is R:.
2. Create a simple batch file called R:Firefox.bat with the following line:

start Firefoxfirefox.exe -profile FFProfile

3. Optionally, disable the disk cache to reduce the amounts of file writes to the removable storage by entering about:config in the address field of Firefox and set browser.cache.disk.enable to false.

The reason why a batch file is needed instead of a simple shortcut is that a shortcut uses absolute paths, and since the actual drive letter for the removable media may change depending on which computer it is plugged into, the relative path used in the batch file is guaranteed to work anywhere.
Select and copy individual table cells

While holding down the Ctrl key, you can select table cells. Just click on any non-link portion of the cell. You can select multiple cells, either by clicking individually on the cells you want to select or by just dragging with the mouse. Once selected, you can use Copy and Paste just like you would on a text selection.
Speed up page rendering

By default, Firefox doesn't try to render a web page for 250 milliseconds while it's waiting for data. If you add the code below to your user.js file, Firefox immediately starts to display the page, even without complete data. The drawback, especially on slower machines, is that the total time to display the page will be longer.

// Last value in milliseconds (default is 250)
user_pref("nglayout.initialpaint.delay", 0);

Enable Pipelining

Pipelining is an experimental feature, designed to improve page-load performance, that is unfortunately not well supported by some web servers and proxies. To try it out, add the following code to your user.js file:

// Enable pipelining:
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests",true);

Specify where to store the cache

To specify in which folder the cache is stored, add the following code to your user.js file:

// Path to Cache folder:
user_pref("browser.cache.disk.parent_directory","C :Path To Cache");

Remember to use two backslashes for the path separators if you're using Windows, e.g. C:PathPath To Cache instead of C:PathPath To Cache.
Specify the memory cache usage

Normally, Firefox determines the memory cache usage dynamically based on the amount of available memory. To specify a specific amount of memory cache, add the following code to your user.js file:

// Specify the amount of memory cache:
// -1 = determine dynamically (default), 0 = none, n = memory capacity in kilobytes
user_pref("browser.cache.memory.capacity", 4096);

To disable the memory cache completely, add the following code:

// Disable memory cache:
user_pref("browser.cache.memory.enable", false);

A note on some of the tweaks.

network.http.pipelining.maxrequests should be set at a maximum of 8. Greater values are ignored.

nglayout.initialpaint.delay if set to 0, you may see web pages stop loading after the initial images are displayed. It must be in sync with content.notify.interval

You can create a new profile by starting Firefox with the -p switch. and to automatically start firefox with a specified profile use
-p "profile name"

user_pref("browser.cache.memory.enable", false) will slow down browsing speed. !!

user_pref("browser.cache.memory.capacity", 4096); .......... 4096 is for users having 64MB RAM. For 256MB use 16000 (16MB), 512MB use 32000(32MB), 1GB use 64000(64MB), ...........
These are the optimum settings.

browser.cache.disk.capacity === set it in between 50000 to 100000. Optimum is between 70000 to 80000

If you see firefox is using up huge amount of system memory then
browser.sessionhistory.max_total_viewers to either 1 or 2

and set "config.trim_on_minimize" to true. Now minimize firefox. This will make firefox free memory when you minimize it.

Comments

Popular posts from this blog

Realme X50 5G launched in China: Rs 26,000 for 120Hz display, 5G connectivity and 30W fast charging

Samsung Galaxy A9 Star Pro Tipped to Sport 4 Rear Cameras and Bixby Button, Galaxy A7 (2018) With 3 Cameras Leaked

4G VoLTE devices in India