编程设置默认主页为Mozilla Firefox浏览器?浏览器、主页、Mozilla、Firefox

由网友(这个丫头有点酷)分享简介:我知道如何设置默认主页,谷歌Chrome和IE浏览器,但我搜索谷歌和#1,了解有关如何使用Mozilla Firefox实现这一目标,但没有机会,可能的答案。 I know how to set the default homepage for Google Chrome and Internet Explorer,...

我知道如何设置默认主页,谷歌Chrome和IE浏览器,但我搜索谷歌和#1,了解有关如何使用Mozilla Firefox实现这一目标,但没有机会,可能的答案。

I know how to set the default homepage for Google Chrome and Internet Explorer, but i searched Google and Stackoverflow for possible answers on how to achieve this with Mozilla Firefox but with no chances.

我不知道是否有以编程方式设置为使用C#Mozilla Firefox浏览器默认启动页面的可能方式(但我想不出哪里火狐存储它的主页。)

I'm wondering if there is a possible way to programmatically set a default Start page for Mozilla Firefox browser using C# ( but i can't figure out where does Firefox store it's homepage.. )

如何编程设置/更改默认主页为Mozilla Firefox浏览器?

How can i programatically set/change default homepage for Mozilla Firefox ?

Thanyou提前。

Thanyou in advance.

推荐答案

什么,你需要做的就是编程编辑为Firefox的用户配置文件prefs.js文件。

What you will need to do is programmatically edit the prefs.js file in the user profile for Firefox.

可以在目录C发现:用户 [用户​​名] 应用程序数据漫游 Mozilla的的Firefox Profiles文件 [一些子文件夹]

It can be found in the directory C:Users [USERNAME]AppDataRoamingMozillaFirefoxProfiles [Some Subfolder]

您将需要添加或编辑看起来像行: 用户_ preF(browser.startup.homepage,www.google.com);

You will need to add or edit the line that looks like: user_pref("browser.startup.homepage", "www.google.com");

阅读全文

相关推荐

最新文章