feat: update browser for windows profile path

This commit is contained in:
Cyrus 2020-12-02 19:44:04 -05:00 committed by ᴍᴏᴏɴD4ʀᴋ
parent 5d25b52877
commit 5048cce1ed
1 changed files with 24 additions and 0 deletions

View File

@ -23,6 +23,12 @@ const (
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-release/" firefoxProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default-release/"
operaProfilePath = "/AppData/Roaming/Opera Software/Opera Stable/"
operaKeyPath = "/AppData/Roaming/Opera Software/Opera Stable/Local State"
operaGXProfilepath = "/AppData/Roaming/Opera Software/Opera GX Stable/"
operaGXKeyPath = "/AppData/Roaming/Opera Software/Opera GX Stable/Local State"
vivaldiProfilePath = "/AppData/Local/Vivaldi/User Data/Default/"
vivaldiKeyPath = "/AppData/Local/Vivaldi/Local State"
) )
var ( var (
@ -72,6 +78,24 @@ var (
Name: braveName, Name: braveName,
New: NewChromium, New: NewChromium,
}, },
"opera": {
ProfilePath: os.Getenv("USERPROFILE") + operaProfilePath,
KeyPath: os.Getenv("USERPROFILE") + operaKeyPath,
Name: operaName,
New: NewChromium,
},
"operagx": {
ProfilePath: os.Getenv("USERPROFILE") + operaGXProfilepath,
KeyPath: os.Getenv("USERPROFILE") + operaGXKeyPath,
Name: operaGXName,
New: NewChromium,
},
"Vivaldi": {
ProfilePath: os.Getenv("USERPROFILE") + vivaldiProfilePath,
KeyPath: os.Getenv("USERPROFILE") + vivaldiKeyPath,
Name: vivaldiName,
New: NewChromium,
},
} }
) )