Making Firefox Not Suck

(in X Windows / X11 / Unix)

Note that all these preferences are in ~/.mozilla/firefox/????????.default/prefs.js

To be able to scroll with a middle-click, like in IE 4.0:

user_pref("general.autoScroll", true);

This makes it so you can middle click in a page without causing the browser to load the [non]URL you have on your clipboard. Without this, the above will not work very well.

user_pref("middlemouse.contentLoadURL", false);

This one just irks me:

user_pref("browser.enable_automatic_image_resizing", false);

Turn off IPv6 DNS. The world is not ready for it. This also prevents stalling on DNS idiocy.

user_pref("network.dns.disableIPv6", true);

Install webfonts / corefonts and do:

user_pref("font.name.monospace.x-western", "Courier New");
user_pref("font.name.sans-serif.x-western", "Arial");
user_pref("font.name.serif.x-western", "Times New Roman");

This will make things look more like a certain other kind of Windows but since we're talking about X11 and fonts here, that's actually a good thing.

To prevent the download manager window from opening when you're saving something you've already downloaded/cached:

user_pref("browser.download.manager.closeWhenDone", true);
user_pref("browser.download.manager.openDelay", 1000);

This delays opening the download manager by 1000msec. If saving takes less time, the closeWhenDone kicks in before the downloads window is even opened.


Tip: Did you know that you can make your Linux/BSD look like Mac OS X by completely disabling font hinting and anti-aliasing all your text instead?

Add the following to your ~/.fonts.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>false</bool>
  </edit>
 </match>
</fontconfig>

Anti-aliasing should be enabled by default. If it's not, add:

 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>

You might want to enable sub-pixel antialiasing:

 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>

This is turned on by default by the nv driver (but not the proprietary nvidia driver) when it detects that the screen is connected via DVI.

If you don't have an LCD screen, or it's not connected by DVI, you probably won't want to use the above as it will make things look worse instead of better.

Note that in order for .fonts.conf to take effect, you will need to re-start Firefox, or whatever other app is using fontconfig.


Valid XHTML 1.1
Copyright © 2006 Emil Mikulic.
$Date: 2007-09-04T13:05:22.366119Z $