|
本文包含了编辑用于网络范围的.defaults文件、缺省的命令行工具的设置及其参数的一个完整列表。它按照一个.defaults文件的格式显示,从中可以看到哪些模块的设置应该放置在一起。(文中绿色的解释文字描述了每个缺省项目的含义,不必在构建一个实际的.defaults文件时也包括这些信息。)
颜色设置通过三个0到1之间的、以空格分隔的十进制数字表示出来,它们分别代表红、绿和蓝色的色值。(“0 0 0”代表黑色,“1 1 1”代表白色,“0.5 0.5 1.0”代表一种蓝色。)在“Boolean”设置和true/false切换参数中,1或YES代表true,0或NO代表false。
{
OAPreferenceController = {
OWAppletPreferences = {
defaultsDictionary = {
OHAppletsDisabled = 0;
/* 1 corresponds to "Don't allow applets" */
OHAppletsRunAutomatically = 0;
/* corresponds to "run manually" vs "run automatically" */
};
};
OWBookmarkPreferences = {
defaultsDictionary = {
BookmarkDrawerOnLeft = 0;
/* 0 for drawer on right, 1 for on left */
BookmarkPage = "file:///~/Library/Application Support/OmniWeb/Bookmarks.html";
/* URL for personal bookmarks file */
BookmarksDefaultCheckTimeMinutes = 0;
/* Default change checking time for bookmarks, in minutes. */
OWUnfiledBookmarksParentName = "";
/* Name of folder new bookmarks are added to */
/* An empty string is the same as "at base level of list" */
OpenAddressPrefersExistingWindows = 1;
/* corresponds to "when using menus or separate windows" preference */
OpenBookmarksAtStartup = 0;
/* whether to open bookmarks drawer/window when OmniWeb launches */
PersonalBookmarksInMenu = 1;
/* whether to show bookmarks in the menu */
PreferBookmarksInDrawer = 1;
/* controls behavior of "open bookmarks" command */
UpdateRedirectedBookmarks = Prompt;
/* "Prompt", "Always", or "Never" */
};
};
OWCachePreferences = {
defaultsDictionary = {
OWContentTypeExpirationTimeIntervals = {
Omni/Document = 600;
/* corresponds to "original HTML or image source" */
Omni/Image = 600;
/* corresponds to "processed HTML documents" */
Omni/Source = 300;
/* corresponds to "processed images" */
};
};
};
OWCookiePreferences = {
defaultsDictionary = {
OWHTTPCookieDefaultBehavior = prompt
/* "prompt", "accept", "accept-session" (discard at end of session), or "reject" */
};
};
OWDownloadPreferences = {
defaultsDictionary = {
OHDownloadFolder = "~/Desktop/";
/* path to download files to */
OFScratchDirectory = NSTemporaryDirectory;
/* path for where to create temporary files */
/* "NSTemporaryDirectory" for system default */
LocalServerSuffix = "";
/* URL for a HTTP server to which you can save files via the filesystem */
LocalServerDirectory = /Library/WebServer/Documents/;
/* DocumentRoot for local web server */
LocalServerIndexFile = index.html;
/* filename to assume for URLs that end in "/" when saving to LocalServerDirectory */
LocalServerUserDirectoryFormat = "~%@/Library/Web/%@";
/* path to assume for local server URLs containing "~username". */
/* first %@ is replaced with username, second with document name */
};
};
OWFontAndColorPreferences = {
defaultsDictionary = {
OHMaximumFontSize = 72;
OHMinimumFontSize = 10;
OWAntialiasTextSize = 2;
/* correspond to maximum, minimum, and smooth text sizes */
OHAlwaysUsePreferenceColors = 0;
/* corresponds to "always use these colors" */
OHBackgroundColor = "1 1 1";
OHTextColor = "0 0 0";
/* background & text colors */
OHLinkColor = "0 0.2 0.46666";
/* link color */
OHCachedLinkColor = "0 0.26666 0.06666";
/* "visited link" color */
OHHighlightedAnchorColor = "0.1 0.6 0.12";
/* "active link" color */
OHNormalFontFamily = "Lucida Grande";
OHNormalFontSize = 14;
/* proportional (base) font */
OHFixedPitchFontFamily = Courier;
OHFixedPitchFontSize = 14;
/* fixed-width (plain text) font */
};
};
OWFormAutoFillPreferences = {
defaultsDictionary = {
OWFormAutoFill = {
city = ""; company = ""; email = ""; firstname = ""; lastname = "";
phone = ""; state = ""; streetaddress = ""; zipcode = "";
};
/* key-value pairs for AutoFill entries */
};
};
OWGeneralPreferences = {
defaultsDictionary = {
AlsoShowOnReopen = 1;
/* corresponds to "when Dock icon is clicked" */
CloseDrawerWhenShowAddress = 1;
/* whether to close bookmark/history drawers after a double-click */
ContextMenuLayout = 0;
/* 0 = based on screen size, 1 = larger, 2, smaller */
OHCommandClickOpensInFront = 0;
/* 0 to open behind current window */
OpenStartPageAtStartup = 1;
/* whether to open browser window with start page on launch */
StartPage = "omniweb:/StartPage/";
/* URL for start page */
UseAddressAutocompletion = 1;
/* wehter to do "autocomplete" for browser location bar */
};
};
OWHTMLPreferences = {
defaultsDictionary = {
AlwaysMakeFramesResizable = 0;
/* whether to show frame rezise borders even when HTML says not to */
OHUnderlineAnchors = 1;
/* thether to underline links */
OHIncrementalDisplay = 1;
/* whether to dosiplay pages as they're loaded */
OWIncomingStringEncoding = "iana iso-8859-1";
/* character encoding to assume for incoming pages that don't specify it */
OWOutgoingStringEncoding = 0;
/* character encoding to use when submitting forms */
/* 0 = same as incoming */
};
};
OWHTMLSourcePreferences = {
defaultsDictionary = {
SourceFontName = Monaco;
SourceFontSize = 11;
/* font for source editor */
SourceFormatOnLoad = 0;
/* whether to reformat when opened */
SourceIndentation = 15;
/* indent amount for reformatting */
SourceColorizeOnLoad = 1;
/* whether to colorize continuously */
SourceRequireEndTags = 0;
/* corresponds to "flag missing end tags" */
OWRetainProcessedSource = 0;
/* whether to allow "view as processed" */
SourceUseBackgroundForMismatchedTags = 1;
/* 1 = highlight with background color, 0 = underline */
SourceMismatchedBackgroundColor = "0.778626 1 0.802284";
/* highlight color for mismatched tags */
SourceUseBackgroundForUnrecognizedTags = 0;
/* 1 = highlight with background color, 0 = underline */
SourceUnrecognizedBackgroundColor = "1 0.778626 0.778626";
/* highlight color for unrecognized tags */
SourceBackgroundColor = "1 1 1";
SourceTextColor = "0 0 0";
SourcePreformattedColor = "0.066667 0 0.024427";
SourceEntityColor = "0.129412 0.035564 0";
SourceCommentColor = "0 0.29 0.025";
SourceTagColor = "0.29 0 0";
SourceAttributeColor = "0 0 0.389";
SourceValueColor = "0.256 0.003 0.297";
/* correspond to color wells in preference pane */
SourceNonSGMLColor = "0.066667 0 0.024427";
/* special color to use for tags not in the SGML standard */
SourceFormattingAlwaysBreakAfterSet = (
br, frameset, frame, head, hr, input, meta, param, area, table, tr
);
SourceFormattingAlwaysBreakBeforeSet = (
hr, li, meta, frameset, frame, input, option, p, param, tr, table
);
SourceFormattingLiteralWhitespaceFormatSet = (pre);
SourceFormattingNoReformatContainerSet = (
b, basefont, big, cite, font, i, em, strong, kbd, nobr,
small, sub, sup, tt, u, var, wbr, a, li
);
SourceFormattingNonContainerSet = (
img, hr, br, dt, dd, input, base, meta, link, area, param, spacer, frame
);
SourceFormattingNonSGMLFormatSet = (xmp, plaintext, script, style);
SourceFormattingPossiblyContainerSet = (p, tr, td, th, option, li);
/* controls which HTML tags whitespace is added/removed for when reformatting */
};
};
OWHistoryPreferences = {
defaultsDictionary = {
HistoryDrawerOnLeft = 0;
/* 0 = on right, 1 = on left */
HistoryUsesDocumentTitles = 1;
/* 0 = history display as URLs instead of titles */
PersistentAddressesPerSite = 10;
/* how many addresses for each site (domain) to store in global history */
PersistentSave = 1;
/* whether to save globabl history between sessions */
PersistentSites = 20;
/* how many sites (domains) to keep in globabl history */
PersistentTimeout = 30;
/* how long to keep entries in global history */
URLComboHeight = 30;
/* how many lines for popup menu in browser address field */
URLComboUsesPersistentHistory = 1;
/* 1 = global history in popup menu, 0 = browser window history only */
};
};
OWImagingPreferences = {
defaultsDictionary = {
OIAnimationMaxLoops = 30;
/* number of times to loop animations */
/* 0 = don't animate, -1 = animate forever */
OHAutoFetchInlineImages = 1;
/* corresponds to "automatically load with page" */
OHDrawPlaceholderImagesWhileLoading = 0;
/* corresponds to "draw placeholders when loading" */
OHBackgroundImagesDisabled = 0;
/* reverse of "draw on screen" */
OHBackgroundImagePrintingDisabled = 1;
/* reverse of "draw on printer" */
};
};
OWPrivacyPreferences = {
defaultsDictionary = {
OWAddressFilteringEnabled = 0;
/* whether to use filter patterns */
OWAddressesToFilter = ("ads\\..*\\.net", "ads\\..*\\.com", ".*\\.doubleclick\\.net");
/* list of filter regex patterns */
OHSkipImagesFromOtherSites = 0;
/* corresponds to "aren't from the site they're shown on" */
OHFilterSuspectedAdBanners = 0;
/* corresponds to "standard sizes for ads" */
};
};
OWProxyPreferences = {
defaultsDictionary = {
OWProxyServers = ();
/*
list of proxy entries. each entry is a dictionary with the following keys:
proxyURL = url of proxy server with optional port number & username
or "(non-proxied destinations)" or "(non-proxied protocols)"
destinations = list of sites/domains for the proxy entry
if missing, proxy entry is for all destinations
schemes = list of protocols for the proxy entry
if missing, proxy entry is for all protocols
active = NO to disable the proxy entry
sample configuration:
{proxyURL = "(non-proxied destinations)"; destinations = (domain.com, domain.net);},
{proxyURL = "(non-proxied protocols)"; schemes = (https); },
{proxyURL = "http://me@authproxy.domain.com/"; destinations (internal.domain.com);}
{proxyURL = "http://proxy.domain.com:3000/"; }
uses no proxy for sites in domain.com and domain.net or for https URLs,
uses authproxy.domain.com (logging in as me) to access internal.domain.com,
and uses proxy.domain.com (on port 3000) for everything else.
*/
};
};
OWShortcutPreferences = {
defaultsDictionary = {
OWAddressShortcuts = {
"*" = "http://www.%@.com/";
localhost = "http://localhost/";
w3 = "http://www.w3.org/";
www = "http://www/";
};
/* list of shortcuts corresponding to those in the preference pane. */
};
};
HTTPSPreferences = {
defaultsDictionary = {
HTTPSAllowPipelineRequests = 0;
HTTPSCacheEnabled = 1;
HTTPSCipherList = "ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH";
HTTPSEGDEnabled = 0;
HTTPSEGDPath = /tmp/entropy;
HTTPSSSLv2Enabled = 1;
HTTPSSSLv3Enabled = 1;
HTTPSTLSv1Enabled = 0;
HTTPSUseBugfixes = 1;
HTTPSUseDefaultCipherList = 1;
HTTPSWarningPanelEnabled = 0;
};
};
JSUserPreferences = {
defaultsDictionary = {
JavaScriptEnabled = 1;
/* reverse of "disable javascript" setting */
JSPopupsDisabled = auto;
/* 0 = always, 1 = never, auto = only in response to user action */
JSBypassSecurity = 0;
/* reverse of "do security checks" preference */
JSPopupErrors = 0;
/* corresponds to "show panel for errors" */
JSShowConsole = 0;
/* corresponds to "show console" */
JSPerformSpoofing = 1;
JSIdentificationSettings = {
AppCodeName = Mozilla;
AppName = "Microsoft Internet Explorer";
AppVersion = "4.0 (compatible; MSIE 5.0; Macintosh; I; PPC)";
Platform = MacPPC;
};
/* "identify as another web browser" settings */
};
};
OWHiddenPreferences = {
defaultsDictionary = {
AutocompleteFromBookmarks = 1;
AutocompleteFromBrowserHistory = 1;
AutocompleteFromPersistHistory = 1;
/* allows you to choose what sources the "atutocomplete" featuer uses */
BrowserAddressAlwaysVisible = 1;
/* whether the (separate) location bar is shown on browser windows */
BrowserFavoritesVisible = 1;
/* whether the favorites bar is shown on browser windows */
BrowserNavigationBarVisible = 1;
/* whether the main navigation bar is shown on browser windows */
BrowserToolbarsVisible = 1;
/* whether the entire set of browser toolbars is hidden/shown */
ShowConsole = 0;
ShowDownloads = 0;
ShowProcesses = 0;
OAShowInspector = 0;
/* whether the Error Log, Recent Downloads, Network Activity, and Info windows */
/* are shown when OmniWeb launches */
"Favorite Preferences" = (General, "Font & Color", Images, Bookmark);
/* a list of which preferences always appear at the top of the preferences window */
OWHTTPUserAgentHeaderFormat = "Mozilla/4.0 (compatible; MSIE 5.5; Mac_PowerPC; %@)";
/* What to identify OmniWeb to web servers as; */
/* the %@ is replaced with OmniWeb's name and versions number. */
DocumentationURL = "omniweb:/Help/";
ProductPageURL = "http://www.omnigroup.com/products/omniweb/";
FeedbackURL = "http://www.omnigroup.com/products/omniweb/feedback/";
/* URLs for the items in the Help menu. */
OWCookiePromptDisclosed = 0;
/* whether the cookie panel shows extended information when open */
OWCookiePromptScope = 1;
/* the default state of the radio buttons on the cookie panel */
/* 0 = just for this cookie, 1 = all cookies from this site, 2 = all cookies */
OWCopyLogToStdErr = 0;
/* Whether to also write the contents of the Error Log to standard error. */
/* 0 = don't, 1 = do, auto = only do it when OmniWeb is run from a Terminal window */
SampleBookmarksPage = SampleBookmarks.html;
/* Which file in OmniWeb's localized resource folder to load sample bookmarks from */
OIAnimationMinimumDelayInterval = 0.1;
/* minimum time step (in seconds) between frames in animated GIFs. */
OHImageCellBorderColor = "0 0 0";
/* color to use for borders of unlinked images whose tag specifies a border width */
OHTextDraggingEnabled = 1;
/* set to 0 to disable drag-and-drop of selected text in browser windows */
OWContentCacheMinimumExpirationTimeInterval = 60;
/* minimum cache timeout setting */
OWDirectoryIndexFilename = index.html;
/* filename to assume when resolving "file:" URLs that end at a directory */
OWFTPAnonymousPassword = "OmniWeb@";
/* password to send to FTP servers when logging in as anonymous */
OWFTPSessionTimeout = 120;
/* time (in seconds) to wait for an FTP server to respond before giving up */
OWHTMLNetscapeCompatibleComments = 1;
OWHTMLNetscapeCompatibleNewlineAfterEntity = 1;
OWHTMLNetscapeCompatibleNonterminatedEntities = 1;
OWURLNetscapeCompatibleRelativeAddresses = 1;
/* enable/disable emulation of certain bugs in other browsers */
OWHTTPDebug = 0;
/* corresponds to "show HTTP requests" box in Error Log window */
OWHTTPEnablePipelinedRequests = 1;
/* enables a HTTP/1.1 feature that can make things faster but can confuse some servers */
OWHTTPMaximumNumberOfRequestsToPipeline = 3;
/* max number of requests to chain together when using said HTTP/1.1 feature */
OWHTTPMaximumSessionsPerServer = 4;
/* max number of connections OmniWeb will open with each server */
OWHTTPSessionTimeout = 120;
/* time (in seconds) to wait for an HTTP server to respond before giving up */
OWLibraryDirectory = "~/Library/Application Support/OmniWeb";
/* folder in which OmniWeb should look for configuration files, cookie files, etc. */
OWNonProxiableSchemes = (dtd, file, javascript, mailto, omniweb, rlogin, telnet, tn3270);
/* URL schemes which shouldn't be sent to a proxy server */
OWURLFakeRootURLs = ();
/*
URLs to substitute for "absolute" URLs in HTML documents.
For example, adding "file:///Users/Shared/WebStagingArea/" to the list would
allow you to put a web site you're working on in that location and test it,
even if it has links or images in it whose specified URLs begin with "/".
*/
OWShortTopLevelDomains = (com, edu, net, org, gov, mil, int, de);
/*
Children of these domains are autonomous if they have at least two domain
components (e.g. "omnigroup.com"). All other domains require at least three
components to be autonomous (e.g. "omnigroup.co.uk"). You may only set a
cookie on an autonomous domain that matches your server domain: this default
prevents people from setting cookies on "co.uk", while allowing them to set
cookies on "omnigroup.com".
*/
OWHTMLCharsetInMetaTag = 1;
/* whether to use META tags to figure out the character encoding of a document */
OWUseCP1252ForLatin1 = 1;
/* IE uses the windows-cp1252 when it says it's using iso-8859-1. */
/* When this is turned on, we do too. */
"OWTask-Checking bookmarks-maximumSimultaneousThreadsInGroup" = 3;
"OWTask-Checking bookmarks-priority" = 1600;
"OWTask-Saving files-maximumSimultaneousThreadsInGroup" = 6;
"OWTask-Saving files-priority" = 400;
"OWTask-Web pages-maximumSimultaneousThreadsInGroup" = 10;
"OWTask-Web pages-priority" = 1000;
"OWTask-Downloading files-maximumSimultaneousThreadsInGroup" = 6;
"OWTask-Downloading files-priority" = 1200;
"OWTask-DEFAULT-maximumSimultaneousThreadsInGroup" = 32;
"OWTask-DEFAULT-priority" = 800;
"OWTask-Orphans-maximumSimultaneousThreadsInGroup" = 1;
"OWTask-Orphans-priority" = 3200;
/* These defaults are used by OmniWeb's scheduler to prioritize different tasks. */
/* maximumSimultaneous... = how many concurrent tasks of the same type OmniWeb will run*/
/* priority = relative priority for the type of task; lower numbers are higher priorities. */
};
};
};
}
|
|