bahattab
12-02-2010, 09:54 PM
C:\Documents and Settings\********\Application Data\Mozilla\Firefox\Profiles\********.default\use r.js
tweaking the firefox 3
[Log in (http://www.linuxquestions.org/questions/lqlogin.php) to get rid of this advertisement]
Today firefox 3 really pissed me off, so I decided to hack at it until I beat/chopped it's bloody corpse into the shape I want it.
I've found many tweaks that I didn't know existed, and they helped me make firefox 3 a lot more like previous versions, both in speed and in layout. Surely you have noticed that the FF devs have decided to add a lot of useless BS buttons to FF 3 that usually are not only redundant but also get in the way of browsing. Anyway here are some of the nice tweaks I found to beat this unruly dirty fox into shape.
So almost all of the following require that you type 'about:config' in the address bar (no quotes) and press Enter, in case you didn't know. You can then search for keys, or add new ones. To add new keys, in about:config you right-click (somewhere inside the lower window) -> New -> String | Integer | Boolean. You'll be using integers and booleans. Doesn't this kinda remind of Window$ regedit ... sends chills down my spine.
Speed tweaks:
The important ones are all listed here:
http://www.tweakfactor.com/articles/...oxtweak/4.html (http://www.tweakfactor.com/articles/tweaks/firefoxtweak/4.html)
Note that they fail to mention that you may actually have to add new keys to about:config, as stated earlier.
Firefox Tweak Guide
Posted: 2004-07-13 by Achilles (http://www.tweakfactor.com/email_us.php?aid=9)
Performance Settings
One of the limitations of pretty much all computer applications is the need to target for a general audience because of the wide array of computer components and varied network infrastructure. This is where tweaking comes in. Firefox by default is aimed at a general audience too and hopefully we can tune it more to the needs of the individual. The majority of the information comes from this excellent thread (http://forums.mozillazine.org/viewtopic.php?t=53650&postdays=0&postorder=asc&postsperpage=15&start=0) over at the MozillaZine Forum. The first post in particular goes through in great detail what each of the settings do. The thread however gets fairly long and convoluted and we attempt to summarize the contents of this thread along with a couple other sources into something that is easier to digest. As with the settings on the previous page, the contents are copied into the user.js file. We do not go into major detail about the setting as the thread goes into detailed explanations of what the settings mean in the first post. Instead, the configurations are culled from the thread of what people have reported to have worked for them along with some modifications on our end.
Quick and Dirty Settings
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.firstrequest", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("nglayout.initialpaint.delay", 0);
These were some settings I ran across sometime ago. Pipelining does multiple data requests at once and should speed things up. I believe IE did this before and this was partially attributable to the speed advantage that IE had over older versions of Mozilla/Netscape. Initial Paint Delay actually slows down the rendering of the ENTIRE page but since users tend to start reading before the entire page is rendered, setting this to a low value gives the impression that the page loads faster.
The following configurations are based off of recommendations off of the Mozillazine thread with some editing on points that I do not agree with
Common to all configurations
These are the settings that seem to be common to all configuration files regardless of connection speed or computer speed with a couple of additions - plugin paths can be found with about:plugins and the bookmark menu delay is turned off.
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);
Fast Computer Fast Connection
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);
A couple settings of note - Firefox is allocated 4096 KB of memory by default and in this configuration we give it roughly 65MB as denoted by the last line. This can be changed according to what is used.
Fast Computer, Slower Connection
This configuration is more suited to people without ultra fast connections. We are not talking about dial up connections but slower DSL / Cable connections.
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);
Fast Computer, Slow Connection
user_pref("browser.xul.error_pages.enabled", true);
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.maxtextrun", 8191);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);
Slow Computer, Fast Connection
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 1000000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 1000000);
user_pref("content.maxtextrun", 4095);
user_pref("nglayout.initialpaint.delay", 1000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("dom.disable_window_status_change", true);
One of the changes made for this particular configuration is the final line where the status bar is disabled for changing web pages to save processor time.
Slow Computer, Slow Connection
We have entered the doldrums of the dial-up user
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 750);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("dom.disable_window_status_change", true);
Some of the options we chose not to include as opposed to suggestions on the Mozillazine threads included the suggestion of catching SSL pages. Regardless of computer speed, one of the common trends is that pipelining is a good thing. Those with faster computers and gobs of memory may want to up the amount of memory available to Firefox while those with slower computers can still increase the default 4MB to something higher. This was not done in our configuration files however. Powerusers are also welcome to disable the status bar to eek out that extra CPU cycle or two.
For full details see:
http://kb.mozillazine.org/Category:Tweaking_preferences
More useful sites (thanks GrapefruiTgirl)
http://www.techspot.com/tweaks/firefox/
http://www.computerworld.com/action/...icleId=9020880 (http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleId=9020880)
Fixing Back and Forward mouse buttons, if they don't work (I always have to do this):
Change these keys:
Code:
mousewheel.horizscroll.withnokey.action 2
mousewheel.horizscroll.withnokey.numlines -1
mousewheel.horizscroll.withnokey.sysnumlines false
source:
http://bbs.archlinux.org/viewtopic.php?id=54429
Fixing middle mouse button opening urls by accident:
Code:
middlemouse.contentLoadURL false
source:
http://www.linuxquestions.org/questi...contentloadurl (http://www.linuxquestions.org/questions/linux-software-2/weird-and-somewhat-graphic-question-about-firefox...-648477/?highlight=contentloadurl)
config hacks:
Most are found here:
http://www.blogsdna.com/372/21-about...-firefox-3.htm (http://www.blogsdna.com/372/21-aboutconfig-hackstweaks-for-firefox-3.htm)
There's an error here tho, in # 8)
disable annoying browser behavior (javascript hijacks)
You should set all those to true, really I recommend you set all
Code:
dom.disable_window* true
because you have to disable these by setting them to true. These are the things you let javascript disable, such as those annoying popups that disable various parts of your FF window, such as url bar, toolbars, etc. You don't want that do you, only some of these options are available under preferences -> content -> javascript advanced.
You may also want to look into this option:
http://kb.mozillazine.org/Browser.li...ow.restriction (http://kb.mozillazine.org/Browser.link.open_newwindow.restriction)
By default it is set to 2 which lets some popups bypass the usual protection that this feature offers, so I set it to 0 (this is the default for seamonkey, or you could set it to 1, but you may have problems with downloads from certain sites not working)
Code:
browser.link.open_newwindow.restriction 0
I don't recommend # 1) in the article.
disable large images in history -> recently closed tabs
ever notice that if you close an image and then want to open it via history it will show the whole image in there ... lol. To disable this nonsense do:
Code:
browser.chrome.image_icons.max_size 0
remove useless buttons from url bar right hand side
Go to '~/.mozilla/firefox/*.default/chrome', rename 'userChrome-example.css' to 'userChrome.css', then edit it and add the following to the bottom:
Code:
/* Disable "List all Tabs" Button */
.tabs-alltabs-button {
display: none !important;
}
/* Disable Container box for "List all Tabs" Button */
.tabs-alltabs-box {
display: none !important;
}
/* Remove the Bookmark star */
#star-button {
display: none !important; }
/* Remove live feed icon in Address url toolbar */
#feed-button {
display: none !important;
}
/* Remove the drop arrow in the Address bar */
.autocomplete-history-dropmarker {
display: none !important;
}
See here for more options:
http://www.mozilla.org/unix/customizing.html
sources:
http://forums.mozillazine.org/viewto...st=0&sk=t&sd=a (http://forums.mozillazine.org/viewtopic.php?f=23&t=463164&start=0&st=0&sk=t&sd=a)
http://ffextensionguru.wordpress.com...k-star-button/ (http://ffextensionguru.wordpress.com/2008/05/10/fx-3-removing-bookmark-star-button/)
http://ffextensionguru.wordpress.com...e-feed-button/ (http://ffextensionguru.wordpress.com/2008/05/10/removing-live-feed-button/)
http://forums.mozillazine.org/viewto...p?f=8&t=213937 (http://forums.mozillazine.org/viewtopic.php?f=8&t=213937)
ipv6
See here, as most DNS servers don't yet support ipv6 (check with your DNS server), you should disable it:
http://en.opensuse.org/Disable_IPv6_for_Firefox
DNS settings
Code:
user_pref("network.dnsCacheExpiration", 360);
user_pref("network.dnsCacheEntries", 100);
user_pref("network.ftp.idleConnectionTimeout", 60);
user_pref("network.http.keep-alive.timeout", 30);
user_pref("network.http.request.max-start-delay", 5);
user_pref("network.http.connect.timeout", 30);
source:
http://forums.mozillazine.org/viewtopic.php?p=517456
crashing (last but not least, how to stop FF from crashing):
Possibly useful in making FF not crash:
http://www.blogsdna.com/430/9-fix-fo...ng-problem.htm (http://www.blogsdna.com/430/9-fix-for-firefox-3-crashes-hanging-problem.htm)
as is listed here many things can contribute to instability, if you research into it, you'll be able to solve many crashes by removing plugins or extensions or toolbars.
Firefox 3.5 specific
FF 3.5, removing the "Recently Closed Windows" menu option
add this to 'userChrome.css' as stated above:
Code:
menu[label="Recently Closed Windows"]
{
display: none !important;
}
FF 3.5 disable tab drag & drop preview thumbnails
Code:
nglayout.enable_drag_images false
source:
http://ffextensionguru.wordpress.com...g-drop-images/ (http://ffextensionguru.wordpress.com/2008/07/07/tweak-disable-drag-drop-images/)
FF 3.5 disable tab tearing
See here:
http://mozillalinks.org/wp/2009/07/d...-5-tab-tweaks/ (http://mozillalinks.org/wp/2009/07/disable-tab-tearing-and-six-other-firefox-3-5-tab-tweaks/)
Basically you need this extension:
https://addons.mozilla.org/en-US/firefox/addon/12276
Hope that helps someone, and if I missed anything important or if you have some more tweaks I'd be happy to see them http://www.atyafonline.com/vb/imgcache/4583.imgcache
Just for your info, extensions that I have installed:
- Adblock Plus
- Download Statusbar
- Flashblock
- Noscript
- SQLite Manager (useful for FF3 and up, as sqlite databases have replaced plain text storage of bookmarks and cookies)
- Show Go! (always show the go button, I like it)
- User Agent Switcher (for sites that like to discriminate and think they can)
- refspoof (for sites that think they can stop me from viewing hot-linked images and such)
- bug489729 (disables tab tearing on FF3.5)
/* Speed Tweak - Common to all Configurations */
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);
/* Speed Tweak - Fast Computer Fast Connection */
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);
/* Speed Tweak - Another Tweak */
user_pref("network.dns.disableIPv6", true);
///////////////////////////
//*External Applications*//
///////////////////////////
/* Tor */
user_pref("network.http.keep-alive.timeout",600);
user_pref("network.http.proxy.keep-alive",true);
/* Picasa */
user_pref("network.protocol-handler.external.picasa", true);
user_pref("network.protocol-handler.app.picasa", "/usr/bin/picasa");
/* Multimedia players */
user_pref("network.protocol-handler.app.mms", "/usr/bin/mplayer");
user_pref("network.protocol-handler.external.mms", true);
user_pref("network.protocol-handler.app.rtsp", "/usr/bin/realplay");
user_pref("network.protocol-handler.external.rtsp", true);
/*Use Icedove for nntp/news*/
user_pref("network.protocol-handler.external.nntp", true);
user_pref("network.protocol-handler.app.nntp","/usr/bin/icedove");
/*Handle help:// links in Firefox*/
user_pref("network.protocol-handler.external.help", true);
user_pref("network.protocol-handler.app.help", "khelpcenter");
/* Access local files*/
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost");
user_pref("capability.policy.localfilelinks.checkloaduri.enab led", "allAccess");
//////////////////////////////////
//* 2.0/3.0 Specific Ui tweaks *//
//////////////////////////////////
/* Fix the font layout */
user_pref("layout.css.dpi", 0);
/* Hide the Go button */
user_pref("browser.urlbar.hideGoButton", true);
/* Get rid of the ugly gtk file picker */
user_pref("ui.allow_platform_file_picker", false);
/* Set backspace key to go to previous page */
user_pref("browser.backspace_action", 0);
/* Block 3rd party cookies */
user_pref("network.cookie.cookieBehavior", 1);
/////////////////////////////
//*Turning off Web annoyances*///
/////////////////////////////
// Turn that annoying autocomplete popup REALLY off:
// (This actually has a UI but it's buried.)
user_pref("browser.urlbar.autocomplete.enabled", false);
user_pref("browser.urlbar.showPopup", false);
user_pref("browser.urlbar.showSearch", false);
/* Disable network prefetching/search engine suggest */
user_pref("network.prefetch-next", false);
user_pref("browser.search.suggest.enabled", false);
/* Put an end to blinking text! */
user_pref("browser.blink_allowed", false);
user_pref("browser.display.show_image_placeholders", false);
/* Disable Find As You Type */
user_pref ("accessibility.typeaheadfind", false);
/* Disable image animation */
user_pref("image.animation_mode", "none");
/* Disable scrolling marquees */
user_pref("browser.display.enable_marquee", false);
userChrome.css
/* Crystal Theme Changes */
/* Use MEDIUM "Penguin" throbber image in all places, always. */
@import url("chrome://global/skin/subskin/throbber-med.css");
/*
/* Change the Address Bar image from default "Page" to "Tux" image. */
@import url("chrome://global/skin/subskin/url-tux.css");
/* Change Tab image from default "Page" to "Tux" image. */
@import url("chrome://global/skin/subskin/tab-tux.css");
/* Change Tab-loading image from default "Circular" to "Penguin" image.
* (If you use this with any of the four options above,
* place it below that entry.) */
@import url("chrome://global/skin/subskin/tab-penguin.css");
/* Restore default OS menulists in Linux. */
@import url("chrome://global/skin/subskin/dropmarker-fix.css");
/* Use Stylized address and search bars. */
@import url("chrome://global/skin/subskin/rounded.css");
/ * Do not remove the @namespace line -- it's required for correct functioning */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
/* Remove the Address Bar's autocomplete history dropmarker image. */
#urlbar > .autocomplete-history-dropmarker {
list-style-image: none !important;
}
/* Remove the Search-Go button.
* (Use with the Stylized search bar only.) */
.search-go-button {
visibility: hidden !important;
}
#content .tabbrowser-strip * {font-size: 10px !important;}
.tabbrowser-tab * {height: 20px !important;}
.tabbrowser-arrowscrollbox,
.tabs-alltabs-stack {height: 24px !important;}
userContent.css
/* Change cursor for links that open in new window */
:link[target="_blank"], :visited[target="_blank"],
:link[target="_new"], :visited[target="_new"] {
cursor: crosshair;
}
/* Change cursor for JavaScript links */
a[href^="javascript:"] {
cursor: move;
}
/* denote mailto: links */
a[href^="mailto:"] {
color: #154766 !important;
text-decoration: underline !important;
Never really saw much difference in how Ff2 and Ff3 ran.
http://www.linuxquestions.org/questions/linux-software-2/tweaking-the-out-of-firefox-3-728014/?highlight=tweaking+Firefox
(http://www.linuxquestions.org/questions/linux-software-2/tweaking-the-out-of-firefox-3-728014/?highlight=tweaking+Firefox)
-----------------------------------------
/* Speed Tweak - Common to all Configurations */
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);
/* Speed Tweak - Fast Computer Fast Connection */
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);
/* Speed Tweak - Another Tweak */
user_pref("network.dns.disableIPv6", true);
///////////////////////////
//*External Applications*//
///////////////////////////
/* Tor/Privoxy*/
user_pref("network.http.keep-alive.timeout",600);
user_pref("network.http.proxy.keep-alive",true);
/* Multimedia players */
user_pref("network.protocol-handler.app.mms", "/usr/bin/mplayer");
user_pref("network.protocol-handler.external.mms", true);
user_pref("network.protocol-handler.app.rtsp", "/usr/bin/realplayer");
user_pref("network.protocol-handler.external.rtsp", true);
/* Access local files*/
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost");
user_pref("capability.policy.localfilelinks.checkloaduri.enab led", "allAccess");
//////////////////////////////
//* 2.0 Specific Ui tweaks *//
//////////////////////////////
/* Fix the font layout */
user_pref("layout.css.dpi", 0);
/* Hide the Go button */
user_pref("browser.urlbar.hideGoButton", true);
/* Get rid of the ugly gtk file picker */
user_pref("ui.allow_platform_file_picker", false);
/* Set backspace key to go to previous page */
user_pref("browser.backspace_action", 0);
/////////////////////////////
//*Turning off Web annoyances*///
/////////////////////////////
// Turn that annoying autocomplete popup REALLY off:
// (This actually has a UI but it's buried.)
user_pref("browser.urlbar.autocomplete.enabled", false);
user_pref("browser.urlbar.showPopup", false);
user_pref("browser.urlbar.showSearch", false);
/* Block 3rd party cookies */
user_pref("network.cookie.cookieBehavior", 1);
// Self-signed certificate handling is annoying //
user_pref("browser.ssl_override_behavior", 2);
user_pref("browser.xul.error_pages.expert_bad_cert", true);
/* Disable network prefetching/search engine suggest */
user_pref("network.prefetch-next", false);
user_pref("browser.search.suggest.enabled", false);
/* Disable geolocation */
user_pref("geo.enabled", false);
/* Put an end to blinking text! */
user_pref("browser.blink_allowed", false);
user_pref("browser.display.show_image_placeholders", false);
/* Disable Find As You Type */
user_pref ("accessibility.typeaheadfind", false);
/* Disable image animation */
user_pref("image.animation_mode", "none");
/* Disable scrolling marquees */
user_pref("browser.display.enable_marquee", false);
http://forums.debian.net/viewtopic.php?f=3&t=48854
tweaking the firefox 3
[Log in (http://www.linuxquestions.org/questions/lqlogin.php) to get rid of this advertisement]
Today firefox 3 really pissed me off, so I decided to hack at it until I beat/chopped it's bloody corpse into the shape I want it.
I've found many tweaks that I didn't know existed, and they helped me make firefox 3 a lot more like previous versions, both in speed and in layout. Surely you have noticed that the FF devs have decided to add a lot of useless BS buttons to FF 3 that usually are not only redundant but also get in the way of browsing. Anyway here are some of the nice tweaks I found to beat this unruly dirty fox into shape.
So almost all of the following require that you type 'about:config' in the address bar (no quotes) and press Enter, in case you didn't know. You can then search for keys, or add new ones. To add new keys, in about:config you right-click (somewhere inside the lower window) -> New -> String | Integer | Boolean. You'll be using integers and booleans. Doesn't this kinda remind of Window$ regedit ... sends chills down my spine.
Speed tweaks:
The important ones are all listed here:
http://www.tweakfactor.com/articles/...oxtweak/4.html (http://www.tweakfactor.com/articles/tweaks/firefoxtweak/4.html)
Note that they fail to mention that you may actually have to add new keys to about:config, as stated earlier.
Firefox Tweak Guide
Posted: 2004-07-13 by Achilles (http://www.tweakfactor.com/email_us.php?aid=9)
Performance Settings
One of the limitations of pretty much all computer applications is the need to target for a general audience because of the wide array of computer components and varied network infrastructure. This is where tweaking comes in. Firefox by default is aimed at a general audience too and hopefully we can tune it more to the needs of the individual. The majority of the information comes from this excellent thread (http://forums.mozillazine.org/viewtopic.php?t=53650&postdays=0&postorder=asc&postsperpage=15&start=0) over at the MozillaZine Forum. The first post in particular goes through in great detail what each of the settings do. The thread however gets fairly long and convoluted and we attempt to summarize the contents of this thread along with a couple other sources into something that is easier to digest. As with the settings on the previous page, the contents are copied into the user.js file. We do not go into major detail about the setting as the thread goes into detailed explanations of what the settings mean in the first post. Instead, the configurations are culled from the thread of what people have reported to have worked for them along with some modifications on our end.
Quick and Dirty Settings
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.firstrequest", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("nglayout.initialpaint.delay", 0);
These were some settings I ran across sometime ago. Pipelining does multiple data requests at once and should speed things up. I believe IE did this before and this was partially attributable to the speed advantage that IE had over older versions of Mozilla/Netscape. Initial Paint Delay actually slows down the rendering of the ENTIRE page but since users tend to start reading before the entire page is rendered, setting this to a low value gives the impression that the page loads faster.
The following configurations are based off of recommendations off of the Mozillazine thread with some editing on points that I do not agree with
Common to all configurations
These are the settings that seem to be common to all configuration files regardless of connection speed or computer speed with a couple of additions - plugin paths can be found with about:plugins and the bookmark menu delay is turned off.
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);
Fast Computer Fast Connection
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);
A couple settings of note - Firefox is allocated 4096 KB of memory by default and in this configuration we give it roughly 65MB as denoted by the last line. This can be changed according to what is used.
Fast Computer, Slower Connection
This configuration is more suited to people without ultra fast connections. We are not talking about dial up connections but slower DSL / Cable connections.
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);
Fast Computer, Slow Connection
user_pref("browser.xul.error_pages.enabled", true);
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.maxtextrun", 8191);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);
Slow Computer, Fast Connection
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 1000000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 1000000);
user_pref("content.maxtextrun", 4095);
user_pref("nglayout.initialpaint.delay", 1000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("dom.disable_window_status_change", true);
One of the changes made for this particular configuration is the final line where the status bar is disabled for changing web pages to save processor time.
Slow Computer, Slow Connection
We have entered the doldrums of the dial-up user
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 750);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("dom.disable_window_status_change", true);
Some of the options we chose not to include as opposed to suggestions on the Mozillazine threads included the suggestion of catching SSL pages. Regardless of computer speed, one of the common trends is that pipelining is a good thing. Those with faster computers and gobs of memory may want to up the amount of memory available to Firefox while those with slower computers can still increase the default 4MB to something higher. This was not done in our configuration files however. Powerusers are also welcome to disable the status bar to eek out that extra CPU cycle or two.
For full details see:
http://kb.mozillazine.org/Category:Tweaking_preferences
More useful sites (thanks GrapefruiTgirl)
http://www.techspot.com/tweaks/firefox/
http://www.computerworld.com/action/...icleId=9020880 (http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleId=9020880)
Fixing Back and Forward mouse buttons, if they don't work (I always have to do this):
Change these keys:
Code:
mousewheel.horizscroll.withnokey.action 2
mousewheel.horizscroll.withnokey.numlines -1
mousewheel.horizscroll.withnokey.sysnumlines false
source:
http://bbs.archlinux.org/viewtopic.php?id=54429
Fixing middle mouse button opening urls by accident:
Code:
middlemouse.contentLoadURL false
source:
http://www.linuxquestions.org/questi...contentloadurl (http://www.linuxquestions.org/questions/linux-software-2/weird-and-somewhat-graphic-question-about-firefox...-648477/?highlight=contentloadurl)
config hacks:
Most are found here:
http://www.blogsdna.com/372/21-about...-firefox-3.htm (http://www.blogsdna.com/372/21-aboutconfig-hackstweaks-for-firefox-3.htm)
There's an error here tho, in # 8)
disable annoying browser behavior (javascript hijacks)
You should set all those to true, really I recommend you set all
Code:
dom.disable_window* true
because you have to disable these by setting them to true. These are the things you let javascript disable, such as those annoying popups that disable various parts of your FF window, such as url bar, toolbars, etc. You don't want that do you, only some of these options are available under preferences -> content -> javascript advanced.
You may also want to look into this option:
http://kb.mozillazine.org/Browser.li...ow.restriction (http://kb.mozillazine.org/Browser.link.open_newwindow.restriction)
By default it is set to 2 which lets some popups bypass the usual protection that this feature offers, so I set it to 0 (this is the default for seamonkey, or you could set it to 1, but you may have problems with downloads from certain sites not working)
Code:
browser.link.open_newwindow.restriction 0
I don't recommend # 1) in the article.
disable large images in history -> recently closed tabs
ever notice that if you close an image and then want to open it via history it will show the whole image in there ... lol. To disable this nonsense do:
Code:
browser.chrome.image_icons.max_size 0
remove useless buttons from url bar right hand side
Go to '~/.mozilla/firefox/*.default/chrome', rename 'userChrome-example.css' to 'userChrome.css', then edit it and add the following to the bottom:
Code:
/* Disable "List all Tabs" Button */
.tabs-alltabs-button {
display: none !important;
}
/* Disable Container box for "List all Tabs" Button */
.tabs-alltabs-box {
display: none !important;
}
/* Remove the Bookmark star */
#star-button {
display: none !important; }
/* Remove live feed icon in Address url toolbar */
#feed-button {
display: none !important;
}
/* Remove the drop arrow in the Address bar */
.autocomplete-history-dropmarker {
display: none !important;
}
See here for more options:
http://www.mozilla.org/unix/customizing.html
sources:
http://forums.mozillazine.org/viewto...st=0&sk=t&sd=a (http://forums.mozillazine.org/viewtopic.php?f=23&t=463164&start=0&st=0&sk=t&sd=a)
http://ffextensionguru.wordpress.com...k-star-button/ (http://ffextensionguru.wordpress.com/2008/05/10/fx-3-removing-bookmark-star-button/)
http://ffextensionguru.wordpress.com...e-feed-button/ (http://ffextensionguru.wordpress.com/2008/05/10/removing-live-feed-button/)
http://forums.mozillazine.org/viewto...p?f=8&t=213937 (http://forums.mozillazine.org/viewtopic.php?f=8&t=213937)
ipv6
See here, as most DNS servers don't yet support ipv6 (check with your DNS server), you should disable it:
http://en.opensuse.org/Disable_IPv6_for_Firefox
DNS settings
Code:
user_pref("network.dnsCacheExpiration", 360);
user_pref("network.dnsCacheEntries", 100);
user_pref("network.ftp.idleConnectionTimeout", 60);
user_pref("network.http.keep-alive.timeout", 30);
user_pref("network.http.request.max-start-delay", 5);
user_pref("network.http.connect.timeout", 30);
source:
http://forums.mozillazine.org/viewtopic.php?p=517456
crashing (last but not least, how to stop FF from crashing):
Possibly useful in making FF not crash:
http://www.blogsdna.com/430/9-fix-fo...ng-problem.htm (http://www.blogsdna.com/430/9-fix-for-firefox-3-crashes-hanging-problem.htm)
as is listed here many things can contribute to instability, if you research into it, you'll be able to solve many crashes by removing plugins or extensions or toolbars.
Firefox 3.5 specific
FF 3.5, removing the "Recently Closed Windows" menu option
add this to 'userChrome.css' as stated above:
Code:
menu[label="Recently Closed Windows"]
{
display: none !important;
}
FF 3.5 disable tab drag & drop preview thumbnails
Code:
nglayout.enable_drag_images false
source:
http://ffextensionguru.wordpress.com...g-drop-images/ (http://ffextensionguru.wordpress.com/2008/07/07/tweak-disable-drag-drop-images/)
FF 3.5 disable tab tearing
See here:
http://mozillalinks.org/wp/2009/07/d...-5-tab-tweaks/ (http://mozillalinks.org/wp/2009/07/disable-tab-tearing-and-six-other-firefox-3-5-tab-tweaks/)
Basically you need this extension:
https://addons.mozilla.org/en-US/firefox/addon/12276
Hope that helps someone, and if I missed anything important or if you have some more tweaks I'd be happy to see them http://www.atyafonline.com/vb/imgcache/4583.imgcache
Just for your info, extensions that I have installed:
- Adblock Plus
- Download Statusbar
- Flashblock
- Noscript
- SQLite Manager (useful for FF3 and up, as sqlite databases have replaced plain text storage of bookmarks and cookies)
- Show Go! (always show the go button, I like it)
- User Agent Switcher (for sites that like to discriminate and think they can)
- refspoof (for sites that think they can stop me from viewing hot-linked images and such)
- bug489729 (disables tab tearing on FF3.5)
/* Speed Tweak - Common to all Configurations */
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);
/* Speed Tweak - Fast Computer Fast Connection */
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);
/* Speed Tweak - Another Tweak */
user_pref("network.dns.disableIPv6", true);
///////////////////////////
//*External Applications*//
///////////////////////////
/* Tor */
user_pref("network.http.keep-alive.timeout",600);
user_pref("network.http.proxy.keep-alive",true);
/* Picasa */
user_pref("network.protocol-handler.external.picasa", true);
user_pref("network.protocol-handler.app.picasa", "/usr/bin/picasa");
/* Multimedia players */
user_pref("network.protocol-handler.app.mms", "/usr/bin/mplayer");
user_pref("network.protocol-handler.external.mms", true);
user_pref("network.protocol-handler.app.rtsp", "/usr/bin/realplay");
user_pref("network.protocol-handler.external.rtsp", true);
/*Use Icedove for nntp/news*/
user_pref("network.protocol-handler.external.nntp", true);
user_pref("network.protocol-handler.app.nntp","/usr/bin/icedove");
/*Handle help:// links in Firefox*/
user_pref("network.protocol-handler.external.help", true);
user_pref("network.protocol-handler.app.help", "khelpcenter");
/* Access local files*/
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost");
user_pref("capability.policy.localfilelinks.checkloaduri.enab led", "allAccess");
//////////////////////////////////
//* 2.0/3.0 Specific Ui tweaks *//
//////////////////////////////////
/* Fix the font layout */
user_pref("layout.css.dpi", 0);
/* Hide the Go button */
user_pref("browser.urlbar.hideGoButton", true);
/* Get rid of the ugly gtk file picker */
user_pref("ui.allow_platform_file_picker", false);
/* Set backspace key to go to previous page */
user_pref("browser.backspace_action", 0);
/* Block 3rd party cookies */
user_pref("network.cookie.cookieBehavior", 1);
/////////////////////////////
//*Turning off Web annoyances*///
/////////////////////////////
// Turn that annoying autocomplete popup REALLY off:
// (This actually has a UI but it's buried.)
user_pref("browser.urlbar.autocomplete.enabled", false);
user_pref("browser.urlbar.showPopup", false);
user_pref("browser.urlbar.showSearch", false);
/* Disable network prefetching/search engine suggest */
user_pref("network.prefetch-next", false);
user_pref("browser.search.suggest.enabled", false);
/* Put an end to blinking text! */
user_pref("browser.blink_allowed", false);
user_pref("browser.display.show_image_placeholders", false);
/* Disable Find As You Type */
user_pref ("accessibility.typeaheadfind", false);
/* Disable image animation */
user_pref("image.animation_mode", "none");
/* Disable scrolling marquees */
user_pref("browser.display.enable_marquee", false);
userChrome.css
/* Crystal Theme Changes */
/* Use MEDIUM "Penguin" throbber image in all places, always. */
@import url("chrome://global/skin/subskin/throbber-med.css");
/*
/* Change the Address Bar image from default "Page" to "Tux" image. */
@import url("chrome://global/skin/subskin/url-tux.css");
/* Change Tab image from default "Page" to "Tux" image. */
@import url("chrome://global/skin/subskin/tab-tux.css");
/* Change Tab-loading image from default "Circular" to "Penguin" image.
* (If you use this with any of the four options above,
* place it below that entry.) */
@import url("chrome://global/skin/subskin/tab-penguin.css");
/* Restore default OS menulists in Linux. */
@import url("chrome://global/skin/subskin/dropmarker-fix.css");
/* Use Stylized address and search bars. */
@import url("chrome://global/skin/subskin/rounded.css");
/ * Do not remove the @namespace line -- it's required for correct functioning */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
/* Remove the Address Bar's autocomplete history dropmarker image. */
#urlbar > .autocomplete-history-dropmarker {
list-style-image: none !important;
}
/* Remove the Search-Go button.
* (Use with the Stylized search bar only.) */
.search-go-button {
visibility: hidden !important;
}
#content .tabbrowser-strip * {font-size: 10px !important;}
.tabbrowser-tab * {height: 20px !important;}
.tabbrowser-arrowscrollbox,
.tabs-alltabs-stack {height: 24px !important;}
userContent.css
/* Change cursor for links that open in new window */
:link[target="_blank"], :visited[target="_blank"],
:link[target="_new"], :visited[target="_new"] {
cursor: crosshair;
}
/* Change cursor for JavaScript links */
a[href^="javascript:"] {
cursor: move;
}
/* denote mailto: links */
a[href^="mailto:"] {
color: #154766 !important;
text-decoration: underline !important;
Never really saw much difference in how Ff2 and Ff3 ran.
http://www.linuxquestions.org/questions/linux-software-2/tweaking-the-out-of-firefox-3-728014/?highlight=tweaking+Firefox
(http://www.linuxquestions.org/questions/linux-software-2/tweaking-the-out-of-firefox-3-728014/?highlight=tweaking+Firefox)
-----------------------------------------
/* Speed Tweak - Common to all Configurations */
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);
/* Speed Tweak - Fast Computer Fast Connection */
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);
/* Speed Tweak - Another Tweak */
user_pref("network.dns.disableIPv6", true);
///////////////////////////
//*External Applications*//
///////////////////////////
/* Tor/Privoxy*/
user_pref("network.http.keep-alive.timeout",600);
user_pref("network.http.proxy.keep-alive",true);
/* Multimedia players */
user_pref("network.protocol-handler.app.mms", "/usr/bin/mplayer");
user_pref("network.protocol-handler.external.mms", true);
user_pref("network.protocol-handler.app.rtsp", "/usr/bin/realplayer");
user_pref("network.protocol-handler.external.rtsp", true);
/* Access local files*/
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost");
user_pref("capability.policy.localfilelinks.checkloaduri.enab led", "allAccess");
//////////////////////////////
//* 2.0 Specific Ui tweaks *//
//////////////////////////////
/* Fix the font layout */
user_pref("layout.css.dpi", 0);
/* Hide the Go button */
user_pref("browser.urlbar.hideGoButton", true);
/* Get rid of the ugly gtk file picker */
user_pref("ui.allow_platform_file_picker", false);
/* Set backspace key to go to previous page */
user_pref("browser.backspace_action", 0);
/////////////////////////////
//*Turning off Web annoyances*///
/////////////////////////////
// Turn that annoying autocomplete popup REALLY off:
// (This actually has a UI but it's buried.)
user_pref("browser.urlbar.autocomplete.enabled", false);
user_pref("browser.urlbar.showPopup", false);
user_pref("browser.urlbar.showSearch", false);
/* Block 3rd party cookies */
user_pref("network.cookie.cookieBehavior", 1);
// Self-signed certificate handling is annoying //
user_pref("browser.ssl_override_behavior", 2);
user_pref("browser.xul.error_pages.expert_bad_cert", true);
/* Disable network prefetching/search engine suggest */
user_pref("network.prefetch-next", false);
user_pref("browser.search.suggest.enabled", false);
/* Disable geolocation */
user_pref("geo.enabled", false);
/* Put an end to blinking text! */
user_pref("browser.blink_allowed", false);
user_pref("browser.display.show_image_placeholders", false);
/* Disable Find As You Type */
user_pref ("accessibility.typeaheadfind", false);
/* Disable image animation */
user_pref("image.animation_mode", "none");
/* Disable scrolling marquees */
user_pref("browser.display.enable_marquee", false);
http://forums.debian.net/viewtopic.php?f=3&t=48854