How to change home page in Internet Explorer using C#?

后端 未结 5 1850
感情败类
感情败类 2021-01-13 08:28

Is it possible to change home page in Internet Explorer in C# application? Solution for other browsers (Firefox, Chrome) would be also nice.

5条回答
  •  情深已故
    2021-01-13 08:58

    Well, for IE, you have to set registry key:

    HKCU\Software\Microsoft\Internet Explorer\Main\Start Page
    

    For firefox, you will need to edit the js file: prefs.js. This can be found in: C:\Users\ [USERNAME]\AppData\Roaming\Mozilla\Firefox\Profiles\ [User Subfolder]

    Chrome, Stores it data in: C:\Users\\AppData\Local\Chromium\User Data\Default folder in a Preferences file. This is in JSON format. Editing it shouldn't be trouble

提交回复
热议问题