搜索 | 用户支持

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

Learn More

Change homepage, Disable Welcome Page/Start Page

  • 1 个回答
  • 1 人有此问题
  • 21 次查看
  • 最后回复者为 cor-el

more options

Hi,

We're trying to create automated tests where we need Firefox to constantly display the same opening home page over and over. However, we can't seem to set the homepage, or disable the welcome/start page from any of the .js or .ini files (even after searching for hours on the web and reading numerous forum posts) .

Firefox Version : 31.0

Any advice is greatly appreciated, and thank you in advanced. - Leo

P.S. We are only allowed to change these settings via files; not through the actual Firefox Web Browser UI

所有回复 (1)

more options

Does it work if you set browser.startup.homepage_override.mstone to ignore in addition to set the startup page?

You may have to set other prefs as well.

Note that you can use a mozilla.cfg file in the Firefox program folder to specify values for prefs.

Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

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

These functions can be used in the mozilla.cfg file:

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

See: