You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.0 KiB
107 lines
3.0 KiB
3 years ago
|
//go:build windows
|
||
|
|
||
2 years ago
|
package provider
|
||
3 years ago
|
|
||
|
import (
|
||
3 years ago
|
"hack-browser-data/internal/item"
|
||
3 years ago
|
)
|
||
|
|
||
|
var (
|
||
|
chromiumList = map[string]struct {
|
||
3 years ago
|
name string
|
||
|
profilePath string
|
||
|
storage string
|
||
|
items []item.Item
|
||
3 years ago
|
}{
|
||
|
"chrome": {
|
||
3 years ago
|
name: chromeName,
|
||
3 years ago
|
profilePath: chromeUserDataPath,
|
||
3 years ago
|
items: item.DefaultChromium,
|
||
3 years ago
|
},
|
||
|
"edge": {
|
||
3 years ago
|
name: edgeName,
|
||
|
profilePath: edgeProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"chromium": {
|
||
|
name: chromiumName,
|
||
3 years ago
|
profilePath: chromiumUserDataPath,
|
||
3 years ago
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"chrome-beta": {
|
||
|
name: chromeBetaName,
|
||
3 years ago
|
profilePath: chromeBetaUserDataPath,
|
||
3 years ago
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"opera": {
|
||
|
name: operaName,
|
||
|
profilePath: operaProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"opera-gx": {
|
||
|
name: operaGXName,
|
||
|
profilePath: operaGXProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"vivaldi": {
|
||
|
name: vivaldiName,
|
||
|
profilePath: vivaldiProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"coccoc": {
|
||
|
name: coccocName,
|
||
|
profilePath: coccocProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"brave": {
|
||
|
name: braveName,
|
||
|
profilePath: braveProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
3 years ago
|
},
|
||
|
"yandex": {
|
||
3 years ago
|
name: yandexName,
|
||
|
profilePath: yandexProfilePath,
|
||
|
items: item.DefaultYandex,
|
||
|
},
|
||
|
"360": {
|
||
|
name: speed360Name,
|
||
|
profilePath: speed360ProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"qq": {
|
||
|
name: qqBrowserName,
|
||
|
profilePath: qqBrowserProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
3 years ago
|
},
|
||
|
}
|
||
|
firefoxList = map[string]struct {
|
||
3 years ago
|
name string
|
||
|
storage string
|
||
|
profilePath string
|
||
|
items []item.Item
|
||
3 years ago
|
}{
|
||
|
"firefox": {
|
||
3 years ago
|
name: firefoxName,
|
||
|
profilePath: firefoxProfilePath,
|
||
|
items: item.DefaultFirefox,
|
||
3 years ago
|
},
|
||
|
}
|
||
|
)
|
||
|
|
||
|
var (
|
||
3 years ago
|
chromeUserDataPath = homeDir + "/AppData/Local/Google/Chrome/User Data/Default/"
|
||
|
chromeBetaUserDataPath = homeDir + "/AppData/Local/Google/Chrome Beta/User Data/Default/"
|
||
|
chromiumUserDataPath = homeDir + "/AppData/Local/Chromium/User Data/Default/"
|
||
3 years ago
|
edgeProfilePath = homeDir + "/AppData/Local/Microsoft/Edge/User Data/Default/"
|
||
|
braveProfilePath = homeDir + "/AppData/Local/BraveSoftware/Brave-Browser/User Data/Default/"
|
||
|
speed360ProfilePath = homeDir + "/AppData/Local/360chrome/Chrome/User Data/Default/"
|
||
|
qqBrowserProfilePath = homeDir + "/AppData/Local/Tencent/QQBrowser/User Data/Default/"
|
||
2 years ago
|
operaProfilePath = homeDir + "/AppData/Roaming/Opera Software/Opera Stable/"
|
||
3 years ago
|
operaGXProfilePath = homeDir + "/AppData/Roaming/Opera Software/Opera GX Stable/"
|
||
|
vivaldiProfilePath = homeDir + "/AppData/Local/Vivaldi/User Data/Default/"
|
||
|
coccocProfilePath = homeDir + "/AppData/Local/CocCoc/Browser/User Data/Default/"
|
||
|
yandexProfilePath = homeDir + "/AppData/Local/Yandex/YandexBrowser/User Data/Default/"
|
||
3 years ago
|
|
||
3 years ago
|
firefoxProfilePath = homeDir + "/AppData/Roaming/Mozilla/Firefox/Profiles/"
|
||
3 years ago
|
)
|