How to set site-wide defaults and how to fool tv1.com

William Shipley wjs
Fri Dec 15 10:32:41 PST 1995


>http://friendly.tv1.com/  reports that it will not display on this
> browser, but it will if you direct it past this home page.

The problem with this site is they are stupidly just checking to see if  
the your browser is called "Netscape", assuming that any non-Netscape  
browser won't understand all the Netscape extensions.

Well, I'm way ahead of them.  Not only did I implement Netscape  
extension I also implemented a Netscape chameleon mode where OmniWeb will  
pretend it's Netscape for certain small-minded servers.  Just do this  
dwrite from the command-line:

dwrite OmniWeb NetscapeBigotedServers '("yahoo.com", "tv1.com")'

And you'll be able to access tv1.com.  Note that yahoo won't give you  
tables unless you say you are Netscape, so we pretend to them by default  
as well.

You can change this site-wide by sticking a special entry in NetInfo, or  
by editing the Preferences.bproj/Omni.dictionary in the OmniWeb.app  
directory.

To set a preference in NetInfo you just need to create a directory named  
"application_preferences" at the top level of the domain you want to  
effect, and in that new directory create another directory named  
"OmniWeb".  In this directory you can put OmniWeb defaults; use the  
default name as the key and the value as the key.  When you're done if  
you do a:

nidump -r application_preferences /

You should see something like this:

name = application_preferences;
CHILDREN = {
    name = OmniWeb;
    TitleRTFFont = "Futura-Bold";
};

Which means at my site we all default to Futura-Bold as our header font.  
 In this manner you can set any preference you see in the  
Preferences.bproj/Omni.dictionary, or in fact any preference from any  
other bundle OmniWeb loads.  You can even FORCE people to use your new  
preference and not override it, just by adding a second value to the key  
with the word "override" in it.  This would make your preferences dump  
look like this:

name = application_preferences;
CHILDREN = {
    name = OmniWeb;
    BookmarkBackgroundColor = (".2 .5 .6", override);
};

Which means at my site EVERYONE MUST have a really horrible background  
bookmark color.

-Wil


More information about the OmniWeb-l mailing list