为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I set the default homepage system-wide in firefox 5?

more options

I used to be able to set the default homepage for all my users in Firefox 3.6 by putting entries like: browser.startup.homepage=http://example.com browser.startup.homepage_reset=http://example.com

into a file browserconfig.properties in the top level firefox directory.

This doesn't seem to work in firefox 5.

How can I set the default homepage system-wide in firefox 5?

I used to be able to set the default homepage for all my users in Firefox 3.6 by putting entries like: browser.startup.homepage=http://example.com browser.startup.homepage_reset=http://example.com into a file browserconfig.properties in the top level firefox directory. This doesn't seem to work in firefox 5. How can I set the default homepage system-wide in firefox 5?

所有回复 (4)

more options

I even tried the new CCK Wizard and FireFox 5 resets my default home page.. the browserconfig.properties was very useful in our School Lab environments. Mozilla should fix this problem.

more options

Actually there is a workaround but it's a bit more difficult...seems to work for what I need to do.

See this article below:

http://managingosx.wordpress.com/2010/01/11/firefox-default-settings-revisited/

more options

You can use a mozilla.cfg file to lock prefs or specify default values.

You can place a file local-settings.js in the defaults\pref folder to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg").

You can use these functions in mozilla.cfg:

defaultPref();  // set new default value
pref(); // set pref, but allow changes
lockPref();  // lock pref, disallow changes

See:

more options

Thanks for the replies.

I eventually found out that I can set the default homepage by putting:

pref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=http://www.example.com/");

into a local preferences file eg: defaults/preferences/localprefs.js