mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
feat: support opera for macOS Close #49
This commit is contained in:
@@ -20,7 +20,6 @@ const (
|
||||
braveName = "Brave"
|
||||
operaName = "Opera"
|
||||
operaGXName = "OperaGX"
|
||||
vivaldiName = "vivaldi"
|
||||
)
|
||||
|
||||
type Browser interface {
|
||||
|
||||
@@ -15,6 +15,8 @@ const (
|
||||
edgeProfilePath = "/Users/*/Library/Application Support/Microsoft Edge/*/"
|
||||
fireFoxProfilePath = "/Users/*/Library/Application Support/Firefox/Profiles/*.default-release/"
|
||||
braveProfilePath = "/Users/*/Library/Application Support/BraveSoftware/Brave-Browser/*/"
|
||||
operaProfilePath = "/Users/*/Library/Application Support/com.operasoftware.Opera/"
|
||||
operaGXProfilePath = "/Users/*/Library/Application Support/com.operasoftware.OperaGX/"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -22,6 +24,7 @@ const (
|
||||
chromeBetaStorageName = "Chrome"
|
||||
edgeStorageName = "Microsoft Edge"
|
||||
braveStorageName = "Brave"
|
||||
operaStorageName = "Opera"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -61,6 +64,18 @@ var (
|
||||
Storage: chromeBetaStorageName,
|
||||
New: NewChromium,
|
||||
},
|
||||
"opera": {
|
||||
ProfilePath: operaProfilePath,
|
||||
Name: operaName,
|
||||
Storage: operaStorageName,
|
||||
New: NewChromium,
|
||||
},
|
||||
"opera-gx": {
|
||||
ProfilePath: operaGXProfilePath,
|
||||
Name: operaGXName,
|
||||
Storage: operaStorageName,
|
||||
New: NewChromium,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user