X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

set StartUp HomePage

Posted

Working with FF 4 & i just can't figure out how to set up my Startup homepage. I've tried this using Users.js & Prefs.js file without any success can someone please advise on this? Thanks in advance.

user_pref("browser.startup.homepage", "http://www.mySite.com/");

Additional System Details

Application

  • User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

More Information

silkphoenix 92 solutions 1250 answers

Helpful Reply

Please read this article to see if it helps:

http://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page

Question owner

this is good but i am actually looking to automate this in our corporate environment by using either user.js or prefs.js file. I know in past i have accomplish this through browserconfig.properties with the following content

browser.startup.homepage=http://mysite.com/ browser.startup.homepage_reset=http://mysite.com/

silkphoenix 92 solutions 1250 answers

Helpful Reply

Sorry, I am not very experienced in configuring the "js" files, so I don't want to give you any wrong information. Some other experienced Firefox users here will have to help you further.

Question owner

Anyone else?

cor-el
  • Top 10 Contributor
  • Moderator
10756 solutions 96803 answers

You can set the home page via the Firefox user interface and copy the lines from the file prefs.js

For new users that do not have a profile you can place files in the default template location.
That folder doesn't exist anymore, so you will have to create it. All files in that folder are copied to a new profile.

  • C:\Program Files\Mozilla Firefox\defaults\profile\

You can also do the configuration via a file mozilla.cfg in the main profile folder.
See:

You can use these functions in mozilla.cfg :

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

Question owner

My Problem lies in the user.js file. FF 4 is already there on the machine & my user.js has this content in it.

user_pref("browser.startup.homepage_override.mstone", "ignore");

which basically locks down the change homepage option. I can always push the new user.js file but the problem is that profile is already there & i don't know how to change this

ovann86 0 solutions 12 answers

As you have found, Firefox 4 has introduced some significant changes to how Firefox handles the configuration files. The configuration files now reside in a package file called 'omni.jar' you can over-ride the settings by creating new configuration files and placing into the 'defaults\pref\' folder or editing and repackaging the 'omni.jar' file.

However, the 'browser.startup.homepage' is not being accepted using this method - as this is a suspected bug it has been filed with Mozilla.

After going through several other options I've devised and tested a consistent and simple way of applying the customisations to a Firefox 4 installation. There is one limitation as detailed in the instructions, it may be a good or a bad thing depending on your deployment situation and requirements. See here for more information:

http://www.mockbox.net/configmgr-sccm/300-firefox-4-set-default-home-page-for-all-users.html

This article has specific steps for creating a Firefox 4 deployment with customisation like you're looking for:

http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html

cor-el
  • Top 10 Contributor
  • Moderator
10756 solutions 96803 answers

You can use a mozilla.cfg file to change the default value of prefs.

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: