forked from rxwx/chlonium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for other Chromium based browsers
- Loading branch information
Showing
7 changed files
with
123 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Chlonium | ||
{ | ||
class Browsers | ||
{ | ||
public class BrowserConfig | ||
{ | ||
public string browserName { get; set; } | ||
public string processName { get; set; } | ||
public string cookieFile { get; set; } | ||
public string localState { get; set; } | ||
} | ||
|
||
public static List<BrowserConfig> browserConfigs = new List<BrowserConfig> | ||
{ | ||
new BrowserConfig | ||
{ | ||
browserName = "Chrome", | ||
processName = "chrome", | ||
cookieFile = string.Format("{0}\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cookies", Environment.GetEnvironmentVariable("USERPROFILE")), | ||
localState = string.Format("{0}\\AppData\\Local\\Google\\Chrome\\User Data", Environment.GetEnvironmentVariable("USERPROFILE")) | ||
}, | ||
new BrowserConfig | ||
{ | ||
browserName = "Edge (Chromium)", | ||
processName = "msedge", | ||
cookieFile = string.Format("{0}\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cookies", Environment.GetEnvironmentVariable("USERPROFILE")), | ||
localState = string.Format("{0}\\AppData\\Local\\Google\\Chrome\\User Data", Environment.GetEnvironmentVariable("USERPROFILE")) | ||
}, | ||
new BrowserConfig | ||
{ | ||
browserName = "Vivaldi", | ||
processName = "vivaldi", | ||
cookieFile = string.Format("{0}\\AppData\\Local\\Vivaldi\\User Data\\Default\\Cookies", Environment.GetEnvironmentVariable("USERPROFILE")), | ||
localState = string.Format("{0}\\AppData\\Local\\Vivaldi\\User Data", Environment.GetEnvironmentVariable("USERPROFILE")) | ||
}, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ChloniumUI | ||
{ | ||
class Browsers | ||
{ | ||
public class BrowserConfig | ||
{ | ||
public string browserName { get; set; } | ||
public string processName { get; set; } | ||
public string cookieFile { get; set; } | ||
public string localState { get; set; } | ||
} | ||
|
||
public static List<BrowserConfig> browserConfigs = new List<BrowserConfig> | ||
{ | ||
new BrowserConfig | ||
{ | ||
browserName = "Chrome", | ||
processName = "chrome", | ||
cookieFile = string.Format("{0}\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cookies", Environment.GetEnvironmentVariable("USERPROFILE")), | ||
localState = string.Format("{0}\\AppData\\Local\\Google\\Chrome\\User Data\\Local State", Environment.GetEnvironmentVariable("USERPROFILE")) | ||
}, | ||
new BrowserConfig | ||
{ | ||
browserName = "Edge (Chromium)", | ||
processName = "msedge", | ||
cookieFile = string.Format("{0}\\AppData\\Local\\Microsoft\\Edge\\User Data\\Default\\Cookies", Environment.GetEnvironmentVariable("USERPROFILE")), | ||
localState = string.Format("{0}\\AppData\\Local\\Microsoft\\Edge\\User Data\\Local State", Environment.GetEnvironmentVariable("USERPROFILE")) | ||
}, | ||
new BrowserConfig | ||
{ | ||
browserName = "Vivaldi", | ||
processName = "vivaldi", | ||
cookieFile = string.Format("{0}\\AppData\\Local\\Vivaldi\\User Data\\Default\\Cookies", Environment.GetEnvironmentVariable("USERPROFILE")), | ||
localState = string.Format("{0}\\AppData\\Local\\Vivaldi\\User Data\\Local State", Environment.GetEnvironmentVariable("USERPROFILE")) | ||
}, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters