42.org, Resources, Netscape
(This is my second stab at a Netscape-page.)

I think Netscape is crap. Unfortunately it's currently the best (graphics) Webbrowser. You can, modify some of Netscapes behavior, to better suit your needs. This page currently talks about version 4.72. (version 3.x-Users look here)

4 easy Steps to enhance Netscape.

  1. Command line switches:

    You can pass netscape a lot of command-line switches, read "netscape -help" to see them all.
    My favorites are:

    You can create a shell alias to make these options 'permanent'. (e.g. in zsh do: alias ns="netscape-4.72 -no-about-splash")
    Don't forget that arguments which are not switches are interpreted as either files or URLs to be loaded. Use this to your advantage :)
    Most customizations can be performed through the Options menu.

  2. Modify your Xresources:

    Netscape is indeed very customizable, if you know how.
    This section unfortunately only applies to Unix versions of Netscape.
    Just put one (ore more) of the following lines into your ${HOME}/.Xdefaults-file.
    These settings will take effect as soon as you login next time.

  3. modify the preferences.js:
    rid that pesky button. user_pref("browser.chrome.disableMyShopping", true); Still needs documenting user_pref("network.search.url", "http://www.42.org/cgi-bin/google.pl?");

  4. Patch the Binary:
    Some things cannot be accomplished by (1) or (2). You have to patch the binary. First of all, a big WARNING to you. I take no responsibility for any damage which might result from using any of the tip's here.
    Editing a binary is very easy, when you look out for a few points:
    1. Use an editor suited for binarys (i.e. one who doesn't change the file contents behind you back) 'vim' is known to work (invoke it with the -b switch). 'emacs' will probably do, too. perl4/perl5 can also be used.
    2. Never change the length of the binary. Whenever you modify anything, keep in mind that you have to keep it at the same length. So usually you can't replace something by a longer version.
    If you want to check, if your editor is suitable for this action, just load netscape in it, insert an 'a' somewhere, delete it and save it under another name. If the files are still the same (use cmp to check this), chances are good :)

  5. Use an modifying proxy:
    this is an alternative to (3). You can accomplish even more things by this, but it surely is slower and wastes some resources. Look at http://www.lne.com/ericm/cookie_jar/ for example.
this page is by no means finished yet, but if you visit it anyway, drop me a note.
Stefan `Sec` Zehl 08-Aug-1997