LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 731|回复: 2

完全定制你的firebird(phoenix)

[复制链接]
发表于 2003-5-23 01:55:16 | 显示全部楼层 |阅读模式
firebird有很强的自定义功能,可选的参数非常多,也很有用处。比如在论坛里,怎样让左边的火苗不闪,还有,设置浏览器的识别字(可以装成IE)。
定义方法:写一个文件,user.js,把它放在~/.phoenix/***下面,要与prefs.js同一个目录。
这个文件里可以写很多东西,完整的清单在:
about:config
是不是有点奇怪,把上面这个打到你的浏览器地址栏里,就能看到列表了。下面给出一些常用的参数:

  1. //
  2. // user.js: Personal prefs which mozilla shouldn't overwrite.
  3. //

  4. ////////////////////////////////////////////////////////////
  5. // Turning off annoyances
  6. ////////////////////////////////////////////////////////////

  7. // Disable blinking text:
  8. user_pref("browser.blink_allowed", false);

  9. // Image animation mode: normal, once, none.
  10. // This pref now has UI under Privacy & Security->Images.
  11. user_pref("image.animation_mode", "once");

  12. // Show pref UI to block images that don't come from the current server
  13. // This is shown by default in Mozilla.
  14. user_pref("imageblocker.enable", true);

  15. // Turn that annoying autocomplete popup REALLY off:
  16. // (This actually has a UI but it's buried.)
  17. user_pref("browser.urlbar.autocomplete.enabled", false);
  18. user_pref("browser.urlbar.showPopup", false);
  19. user_pref("browser.urlbar.showSearch", false);

  20. // Turn off the download manager (0=download manager, 1=simple dialog?)
  21. user_pref(("browser.downloadmanager.behavior", 1);

  22. // Enable the marquee tag (disabled by default):
  23. user_pref("browser.display.enable_marquee", true);

  24. ////////////////////////////////////////////////////////////
  25. // Platform parity/UI issues
  26. ////////////////////////////////////////////////////////////

  27. // Key modifier stuff: see bug 22515
  28. // Motif-style access keys:
  29. user_pref("ui.key.accelKey", 18);
  30. user_pref("ui.key.menuAccessKey", 0);
  31. //user_pref("ui.key.menuAccessKeyFocuses", false);

  32. // Windows-style access keys:
  33. //user_pref("ui.key.accelKey", 17);
  34. //user_pref("ui.key.menuAccessKey", 18);
  35. //user_pref("ui.key.menuAccessKeyFocuses", true);

  36. // Uncomment this to turn off Unix-style autocopy
  37. // (or set it to true to turn it on on non-Unix platforms):
  38. //user_pref("clipboard.autocopy", false);

  39. // Middle mouse prefs: true by default on Unix, false on other platforms.
  40. user_pref("middlemouse.paste", false);
  41. user_pref("middlemouse.openNewWindow", true);
  42. user_pref("middlemouse.contentLoadURL", false);
  43. user_pref("middlemouse.scrollbarPosition", false);

  44. // Newline paste behavior: 0=paste unchanged, 1=paste only
  45. // first line, 2=replace with spaces, 3=strip newlines
  46. //user_pref("editor.singleLine.pasteNewlines", 0);

  47. // Bug in Netscape 6 branch: drag out of frame style pref was
  48. // never initialized on Unix, so dragging below a line of text
  49. // doesn't snap selection to the end of the line.
  50. //pref("browser.drag_out_of_frame_style", 1);

  51. ////////////////////////////////////////////////////////////
  52. // UI look-and-feel issues
  53. ////////////////////////////////////////////////////////////

  54. // Tab focus model bit field:
  55. // 1 focuses text controls, 2 focuses other form elements,
  56. // 4 adds links.
  57. // Most users will want 1, 3, or 7.
  58. user_pref("accessibility.tabfocus", 1);

  59. // Don't ever show me a font smaller than this: see bug 30910.
  60. // This is the new cross-platform pref; the old Unix-only
  61. // font.min-size pref is deprecated and will be removed soon.
  62. // A UI is now in place for this pref, and can be found under
  63. // Appearance->Fonts.
  64. user_pref("font.minimum-size.x-western", 13);

  65. // X font banning: see bug 104075.
  66. // Ban all arial fonts, because abiword installs an ugly one
  67. // and there doesn't seem to be a good one available:
  68. user_pref("font.x11.rejectfontpattern", "fname=.*arial.*");

  69. // Some alternate forms for rejectfontpattern:
  70. // "fname=.*arial.*;scalable=.*;outline_scaled=.*;\
  71. // xdisplay=.*;xdpy=.*;ydpy=.*;xdevice=.*");
  72. // "fname=-zz-abiword.*;scalable=false;outline_scaled=false;");
  73. // Alternately, reject font if accept pattern does not match it:
  74. //user_pref("font.x11.acceptfontpattern", ".*");

  75. // Set the submenu delay to be really long.
  76. // This means that menus will stay posted until I click somewhere,
  77. // making them behave more like Motif menus instead of un-posting
  78. // whenever my mouse strays one pixel off the menu or cuts
  79. // across the border between a menu and a submenu:
  80. user_pref("ui.submenuDelay", 7000);

  81. // Typeahead find configuration:
  82. user_pref("accessibility.typeaheadfind", true);
  83. user_pref("accessibility.typeaheadfind.linksonly", true);
  84. user_pref("accessibility.typeaheadfind.startlinksonly", false);
  85. user_pref("accessibility.typeaheadfind.timeout", 5000);

  86. // Set select colors for text:
  87. user_pref("ui.textSelectBackground", "green");
  88. user_pref("ui.textSelectForeground", "white");
  89. // Select color for typeahead find is slightly different:
  90. user_pref("ui.textSelectBackgroundAttention", "blue");
  91. // Not clear when/if widgetSelectBackground ever gets called: let's find out.
  92. user_pref("ui.widgetSelectBackground", "orange");

  93. ////////////////////////////////////////////////////////////
  94. // Control of popup windows
  95. ////////////////////////////////////////////////////////////

  96. // Use configurable security policies to override popups, see
  97. // [url]http://www.mozilla.org/projects/security/components/ConfigPolicy.html[/url]
  98. // Turn window.open off for particular sites:
  99. user_pref("capability.policy.popupsites.sites", "http://www.annoyingsite1.com [url]http://www.popupsite2.com[/url]");
  100. user_pref("capability.policy.popupsites.Window.open","noAccess");
  101. // Or turn it off everywhere:
  102. user_pref("capability.policy.default.Window.open","noAccess");

  103. // More important, disable JS windows popping up a new window on load
  104. // (as lots of porn and spam sites do):
  105. user_pref("dom.disable_open_during_load", true);

  106. // Override popping up new windows on target=anything.
  107. // This is now accessible in the prefs dialog, under Advanced|Scripts&Windows.
  108. user_pref("browser.block.target_new_window", true);

  109. // It is now possible to disable the JavaScript window.open() method
  110. // when it is not called as a result of a mouse click.
  111. // When the dom.disable_open_click_delay pref is set to a non-zero
  112. // number, window.open will fail when called more than that number
  113. // of milliseconds after a mouse click.
  114. user_pref("dom.disable_open_click_delay", 1000);

  115. ////////////////////////////////////////////////////////////
  116. // Miscellaneous stuff
  117. ////////////////////////////////////////////////////////////

  118. // Override the default user-agent string:
  119. user_pref("general.useragent.override", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0; hi, Mom) Gecko/20020604");

  120. // Syntax highlighting in View Source.
  121. // This has a UI under Appearance->Colors
  122. user_pref("browser.view_source.syntax_highlight", false);

  123. // In chatzilla, show original text in addition to smiley substitutions:
  124. user_pref("extensions.irc.munger.smileyText", true);

  125. // Wrap column for html output from the editor:
  126. user_pref("editor.htmlWrapColumn", 72);

  127. // Show JS warnings. This is also available in the Debug panel
  128. // under Preferences.
  129. user_pref("javascript.options.strict", true);

  130. // Change default paper size from US-Letter to A4:
  131. //user_pref("print.postscript.paper_size", "A4");


  132. ////////////////////////////////////////////////////////////
  133. // Useful mail/news prefs
  134. ////////////////////////////////////////////////////////////

  135. // 0=bottom 1=top 2=select+bottom 3=select+top
  136. // Mozilla defaults it to 0, but Netscape defaults it to 1 (yuck).
  137. user_pref("mailnews.reply_on_top", 0);

  138. // Show the user agent of incoming messages
  139. user_pref("mailnews.headers.showUserAgent", true);

  140. // Turn off the history addrbook
  141. user_pref("mail.collect_email_address", false);

  142. // Turn off graphical reply style in the message window
  143. user_pref("mail.quoted_graphical", false);
  144. // display glyph, see [url]http://www.bucksch.org/1/projects/mozilla/16507[/url]
  145. user_pref("mail.display_glyph", true);   

  146. // use HTML-style quoting for quoting plain text (during HTML replies)
  147. user_pref("mail.quoteasblock", true);

  148. // Format=flowed prefs, RFC 2646
  149. user_pref("mailnews.send_plaintext_flowed", true);
  150. user_pref("mailnews.display.disable_format_flowed_support", true);
  151. user_pref("mail.display_struct", true);
  152. user_pref("mail.send_struct", false);
复制代码
发表于 2003-5-23 06:21:15 | 显示全部楼层
chrome://communicator/content/pref/pref.xul
 楼主| 发表于 2003-5-23 09:33:25 | 显示全部楼层
嘿嘿,这个和我那个出处一样,不过我觉得那样还是搞不清楚,而且它那对话框里有些参数已经不支持了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表