Quote of the day : "Waaaaaa, hah, haaaaahheeee!" Shibuki (Retard Girl voice pack)

Next quote in 15.7 hours. [suggest a quote]

Installing and configuring Firefox

Introduction

This tutorial will guide you briefly through the installation of Firefox, then we'll give you basics about how to personalise it with skins (themes), then we'll list a few useful extensions. Finally, we'll see how to configure it to increase the loading speed of pages, block all popups, and a few other optimizations or tweaks.

Summary

All links

Installation

Run the installer.
Choose the custom installation.
Choose the folder where you want to install Firefox (we chose C:\Program Files\Firefox).
On the next screen, we chose not to install the Developer Tools nor the Quality Feedback Agent, but you can install whatever you want.
Then, we chose to place Firefox icons in the Start menu and in the Quick Launch bar.

You're done, now launch Firefox.
It asks you if you want to import your settings (favorites, form data, etc) from MSIE, do as you want, we chose not to import anything.
It also asks if you want Firefox to be your default browser, we chose no and not to check everytime the browser is started.

Getting themes

Themes can be downloaded here. This is a little directory where you can browse themes.
To download and install a theme, click on Install Now on the theme's page (see screenshot below).
For the screenshots here, we used a theme named Modern Pinball.
Installing a theme
Here is a little selection :

Getting extensions

Extensions can be downloaded here. This is a little directory where you can browse extensions.
To download and install an extension, click on Install Now on the extension's page (same as with themes).

Here is a little selection :

Configuration through the menus

To open the Options, in the menu choose Tools → Options.
Then, follow our screenshots...

General

General options

Tabbrowser preferences

Tabbrowser options

Privacy

Privacy options

Web features

Note that we disabled Java only because, for some reason, we didn't manage to get it work properly. You can leave it checked.
Web features options

Downloads

Not much to do here... if you want, check Ask me where to save every file.

Advanced

Advanced options

Configuration through the config files

Your whole Firefox configuration is located in a folder named :
C:\Documents and Settings\username\Application Data\Mozilla\Firefox
where : We are going to work with your Firefox profile files, located in a folder named :
C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\s1fbh24p.default
where s1fbh24p are 8 random characters.

Note : You should close Firefox when you are editing these files, otherwise you may lose your changes.

prefs.js and user.js

In your profile folder, you can see a file named prefs.js. This is where some of your settings are stored by Firefox, Firefox can write in this file.
Create a file named user.js in the same directory as prefs.js. The user.js file is read by Firefox, but Firefox can't modify it. So when you set an option in this file, it's always activated when you launch Firefox.
Note that the lines beginning with // are comments.

Make pages load faster : pipelining & Co

Pipelining is an experimental feature that makes pages load faster. To make it short, when it's not activated, you download a web page element by element (ie, the HTML code, then the first picture, then the second picture, etc). When pipelining is enabled, you download several elements at the same time, so the page loads faster (if your connection is good enough, of course). But some servers will react badly if you open too many connections, so don't choose a too high number for the maxrequests parameter.
To enable pipelining, ad the following lines in user.js :
// Enable pipelining:
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
Firefox doesn't begin to render a web page during the first 250 milliseconds of loading. You can lower this limit, however I don't advise you to zero it since this would increase the total rendering time. Add the following line to user.js to set it to 150 :
// Last value in milliseconds (default is 250)
user_pref("nglayout.initialpaint.delay", 150);

Disable some JavaScript window features

Here are some useful options that are not available in the menus yet, to protect you against malicious javascripts :
// More DOM/JavaScript options
// Make sure all pop-up windows are resizable:
user_pref("dom.disable_window_open_feature.resizable", true);
// Make sure all pop-up windows are minimizable:
user_pref("dom.disable_window_open_feature.minimizable", 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.location", true);
// Prevent sites from disabling scrollbars:
user_pref("dom.disable_window_open_feature.scrollbars", true);

Block absolutely all popups

Firefox 1.0.x has a vulnerability that enables some contents like Flash to open popups even when popups are disabled. To completely block popups, add the following lines to user.js (note that there is a bug with this feature that will prevent you from opening the blocked popups) :
// Block pop-ups from Flash :
user_pref("privacy.popups.disable_from_plugins", 3);
// Block pop-ups from events
user_pref("dom.popup_allowed_events", "dblclick");

Force frames to be resizable

Add the following code to user.js to make all frame resizable. Note that this may give a weird look to some pages, since this option will make all frame borders visible. For an example, look at the bottom frame in your Gmail mailbox ;)
// Force frames to be resizable
user_pref("layout.frames.force_resizability", true);

Other

Well, there are a lot of other settings available in user.js. We quickly explained the ones who seemed the most important to us, here is our own full user.js file. If you need more help on an option, try our forum or use some search engine.
// http://www.mozilla.org/support/firefox/tips#oth_pipelining

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

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

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

// Path to Cache folder:
// user_pref("browser.cache.disk.parent_directory","D:\\TEMP\\FirefoxCache");
// Specify the amount of cache:
// -1 = determine dynamically (default), 0 = none, n = memory capacity in kilobytes
user_pref("browser.cache.memory.capacity", 65536);
// user_pref("browser.cache.disk.capacity", 0);
user_pref("browser.cache.disk.enable", false);

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

// More DOM/JavaScript options
// Make sure all pop-up windows are resizable:
user_pref("dom.disable_window_open_feature.resizable", true);
// Make sure all pop-up windows are minimizable:
user_pref("dom.disable_window_open_feature.minimizable", 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.location", true);
// Prevent sites from disabling scrollbars:
user_pref("dom.disable_window_open_feature.scrollbars", true);

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

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

// User agent
user_pref("general.useragent.override", "http://www.patheticcockroach.com/ - Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.7");

// Block pop-ups from Flash :
user_pref("privacy.popups.disable_from_plugins", 3);

// Block pop-ups from events
// user_pref("dom.popup_allowed_events", "change click dblclick mouseup reset submit"); defaut
user_pref("dom.popup_allowed_events", "dblclick");


// Sends the referer info (default is 2)
user_pref("network.http.sendRefererHeader", 2);

Some redesigning with userChrome.css

In C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\s1fbh24p.default\chrome, create a file named userChrome.css.
In this file, put the following content :
/* Remove the close button on the tab bar */
.tabs-closebutton-box {display: none !important;}

/* removes throbber */
#throbber-box {display: none !important;}
This will remove the button to close the tabs (to close the current tab, use CTRL+W) and the little thingy (the throbber) that moves in the upper-right corner when you load a page.

Credits and copyright notice

To write this tutorial, we used our current Firefox 1.0.7 configuration. The following sites were useful :
Comments :
No comments yet
[Add a comment]