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.
93 lines
2.4 KiB
93 lines
2.4 KiB
3 years ago
|
//go:build linux
|
||
|
|
||
2 years ago
|
package browser
|
||
3 years ago
|
|
||
|
import (
|
||
2 years ago
|
"github.com/moond4rk/HackBrowserData/item"
|
||
3 years ago
|
)
|
||
|
|
||
|
var (
|
||
|
chromiumList = map[string]struct {
|
||
|
name string
|
||
|
storage string
|
||
|
profilePath string
|
||
|
items []item.Item
|
||
|
}{
|
||
|
"chrome": {
|
||
|
name: chromeName,
|
||
|
storage: chromeStorageName,
|
||
|
profilePath: chromeProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"edge": {
|
||
|
name: edgeName,
|
||
|
storage: edgeStorageName,
|
||
|
profilePath: edgeProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"chromium": {
|
||
|
name: chromiumName,
|
||
|
storage: chromiumStorageName,
|
||
|
profilePath: chromiumProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"chrome-beta": {
|
||
|
name: chromeBetaName,
|
||
|
storage: chromeBetaStorageName,
|
||
|
profilePath: chromeBetaProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"opera": {
|
||
|
name: operaName,
|
||
|
profilePath: operaProfilePath,
|
||
|
storage: operaStorageName,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"vivaldi": {
|
||
|
name: vivaldiName,
|
||
|
storage: vivaldiStorageName,
|
||
|
profilePath: vivaldiProfilePath,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
"brave": {
|
||
|
name: braveName,
|
||
|
profilePath: braveProfilePath,
|
||
|
storage: braveStorageName,
|
||
|
items: item.DefaultChromium,
|
||
|
},
|
||
|
}
|
||
|
firefoxList = map[string]struct {
|
||
|
name string
|
||
|
storage string
|
||
|
profilePath string
|
||
|
items []item.Item
|
||
|
}{
|
||
|
"firefox": {
|
||
|
name: firefoxName,
|
||
|
profilePath: firefoxProfilePath,
|
||
|
items: item.DefaultFirefox,
|
||
|
},
|
||
|
}
|
||
|
)
|
||
|
|
||
|
var (
|
||
3 years ago
|
firefoxProfilePath = homeDir + "/.mozilla/firefox/"
|
||
3 years ago
|
chromeProfilePath = homeDir + "/.config/google-chrome/Default/"
|
||
|
chromiumProfilePath = homeDir + "/.config/chromium/Default/"
|
||
3 years ago
|
edgeProfilePath = homeDir + "/.config/microsoft-edge/Default/"
|
||
3 years ago
|
braveProfilePath = homeDir + "/.config/BraveSoftware/Brave-Browser/Default/"
|
||
|
chromeBetaProfilePath = homeDir + "/.config/google-chrome-beta/Default/"
|
||
|
operaProfilePath = homeDir + "/.config/opera/Default/"
|
||
|
vivaldiProfilePath = homeDir + "/.config/vivaldi/Default/"
|
||
3 years ago
|
)
|
||
|
|
||
|
const (
|
||
|
chromeStorageName = "Chrome Safe Storage"
|
||
|
chromiumStorageName = "Chromium Safe Storage"
|
||
|
edgeStorageName = "Chromium Safe Storage"
|
||
|
braveStorageName = "Brave Safe Storage"
|
||
|
chromeBetaStorageName = "Chrome Safe Storage"
|
||
|
operaStorageName = "Chromium Safe Storage"
|
||
|
vivaldiStorageName = "Chrome Safe Storage"
|
||
|
)
|