mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
refactor: Optimize traversal browser data logic (#311)
* refactor: Refactor package names and imports for better code organization. * refactor: Package imports and variable types for consistency * chore: Disable unused-parameter rule in revive. * refactor: Refactor and organize data extraction and browserdata parse. * fix: rename wrong error message info
This commit is contained in:
+11
-11
@@ -3,7 +3,7 @@
|
||||
package browser
|
||||
|
||||
import (
|
||||
"github.com/moond4rk/hackbrowserdata/item"
|
||||
"github.com/moond4rk/hackbrowserdata/types"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -11,61 +11,61 @@ var (
|
||||
name string
|
||||
storage string
|
||||
profilePath string
|
||||
items []item.Item
|
||||
dataTypes []types.DataType
|
||||
}{
|
||||
"chrome": {
|
||||
name: chromeName,
|
||||
storage: chromeStorageName,
|
||||
profilePath: chromeProfilePath,
|
||||
items: item.DefaultChromium,
|
||||
dataTypes: types.DefaultChromiumTypes,
|
||||
},
|
||||
"edge": {
|
||||
name: edgeName,
|
||||
storage: edgeStorageName,
|
||||
profilePath: edgeProfilePath,
|
||||
items: item.DefaultChromium,
|
||||
dataTypes: types.DefaultChromiumTypes,
|
||||
},
|
||||
"chromium": {
|
||||
name: chromiumName,
|
||||
storage: chromiumStorageName,
|
||||
profilePath: chromiumProfilePath,
|
||||
items: item.DefaultChromium,
|
||||
dataTypes: types.DefaultChromiumTypes,
|
||||
},
|
||||
"chrome-beta": {
|
||||
name: chromeBetaName,
|
||||
storage: chromeBetaStorageName,
|
||||
profilePath: chromeBetaProfilePath,
|
||||
items: item.DefaultChromium,
|
||||
dataTypes: types.DefaultChromiumTypes,
|
||||
},
|
||||
"opera": {
|
||||
name: operaName,
|
||||
profilePath: operaProfilePath,
|
||||
storage: operaStorageName,
|
||||
items: item.DefaultChromium,
|
||||
dataTypes: types.DefaultChromiumTypes,
|
||||
},
|
||||
"vivaldi": {
|
||||
name: vivaldiName,
|
||||
storage: vivaldiStorageName,
|
||||
profilePath: vivaldiProfilePath,
|
||||
items: item.DefaultChromium,
|
||||
dataTypes: types.DefaultChromiumTypes,
|
||||
},
|
||||
"brave": {
|
||||
name: braveName,
|
||||
profilePath: braveProfilePath,
|
||||
storage: braveStorageName,
|
||||
items: item.DefaultChromium,
|
||||
dataTypes: types.DefaultChromiumTypes,
|
||||
},
|
||||
}
|
||||
firefoxList = map[string]struct {
|
||||
name string
|
||||
storage string
|
||||
profilePath string
|
||||
items []item.Item
|
||||
dataTypes []types.DataType
|
||||
}{
|
||||
"firefox": {
|
||||
name: firefoxName,
|
||||
profilePath: firefoxProfilePath,
|
||||
items: item.DefaultFirefox,
|
||||
dataTypes: types.DefaultFirefoxTypes,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user