编程设置默认主页为Mozilla Firefox浏览器? [英] Programmatically set the default homepage for Mozilla Firefox?

查看:420
本文介绍了编程设置默认主页为Mozilla Firefox浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何设置默认主页,谷歌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]\AppData\Roaming\Mozilla\Firefox\Profiles\ [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");

这篇关于编程设置默认主页为Mozilla Firefox浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆