為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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