As is true with most geeks who use it for a while, my installation of Firefox is rather heavily modded. Since my setup does such a good job of blocking ads, I decided to share it.

System Tweaks

Extensions

Bookmarklets

TODO

Config Files

userChrome.css

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

 /* Hide the Go menu */
menu[label="Go"] {
   display: none !important;
}

/* Italicize the title of unread tabs */
#content tab:not([selected]) {
  font-style: italic !important;
}

userContent.css

@import url(chrome://flashblock/content/flashblock.css);
/*
 * This file can be used to apply a style to all web pages you view
 * Rules without !important are overruled by author rules if the
 * author sets any.  Rules with !important overrule author rules.
 *
 * For more examples see http://www.mozilla.org/unix/customizing.html
 */

// Stop useless, annoying "blink" elements.
blink   { text-decoration: none ! important; }

/* 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; } 

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

/* Add a skull and crossbones after links marked rel=nofollow */
a[rel="nofollow"]:after {
   content: "\002620"; 
   color: #933; 
   font-size: 10pt; 
}

user.js

// Reveal more tab/window options: (No more need for "Tabbrowser Extensions" Bloat)
user_pref("browser.tabs.showSingleWindowModePrefs", true);

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

// Make sure all windows are resizable, minimizable, and have menus, scrollbars, and navbars:
user_pref("dom.disable_window_open_feature.resizable", true);
user_pref("dom.disable_window_open_feature.minimizable", true);
user_pref("dom.disable_window_open_feature.menubar", true);
user_pref("dom.disable_window_open_feature.location", true);
user_pref("dom.disable_window_open_feature.scrollbars", true);

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

// Change non-URL entry in the address bar to a hybrid of Google's "I'm Feeling Lucky" and normal Google search:
// If there's a clear-cut match, go to it. Otherwise, show search results.
user_pref("keyword.URL", "http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=");

// Don't wait 250ms before rendering page.
user_pref("nglayout.initialpaint.delay", 0);

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

//Explicit Javascript Blacklisting (For cases where Javascript is definitely not necessary and is just annoying)
user_pref("capability.policy.policynames", "nojs");
user_pref("capability.policy.nojs.sites", "geocities.com");
user_pref("capability.policy.nojs.javascript.enabled", "noAccess");

//(Disabled) Javascript Whitelisting (For if you don't want to muck around with the NoScript! extension)
//user_pref("capability.policy.policynames", "jsok");
//user_pref("capability.policy.default.javascript.enabled", "noAccess");
//user_pref("capability.policy.jsok.sites", "http://www.example.com http://www.example.net");
//user_pref("capability.policy.jsok.javascript.enabled", "allAccess");

// Make middle-clicking tabs close them. (A fix for a change in the defaults)
user_pref("middlemouse.contentLoadURL", false);

// Turn off image animation (Valid choices are "none", "once", and "normal")
user_pref("image.animation_mode", "none");

// Partially-untested changes which apparently do something I want.
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);

// Show pictures as they load (Gives the illusion of quicker loading)
user_pref("browser.display.show_image_placeholders", false);
// Use error pages instead of error dialogs. (Much better for tabbed browsing)
user_pref("browser.xul.error_pages.enabled", true);

//The Following is a "Fast Computer, Fast Connection" enhancement profile.
// See http://216.239.59.104/search?q=cache:http%3A//www.tweakfactor.com/articles/tweaks/firefoxtweak/4.html
user_pref("content.notify.backoffcount", 5);
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);

// Feel free to use 65535 (64MB) if you are willing to let your browser's cache grow that big and use the back button a lot.
user_pref("browser.cache.memory.capacity", 32768); 

// Only set this if you can guarantee nobody else can read your cache files
user_pref("browser.cache.disk_cache_ssl", true);

Tweaks/Firefox (last edited 2008-02-12 10:13:57 by StephanSokolow)