format browser name

ᴍᴏᴏɴD4ʀᴋ 4 years ago
parent b448aa223e
commit 1308569c9d
  1. 16
      README.md
  2. 21
      utils/utils_linux
  3. 1
      utils/utils_linux.go
  4. 10
      utils/utils_windows.go

@ -53,18 +53,18 @@ GLOBAL OPTIONS:
| Browser | Password | Cookie | Bookmark | History | | Browser | Password | Cookie | Bookmark | History |
| :---------------------------------- | :------: | :----: | :------: | :-----: | | :---------------------------------- | :------: | :----: | :------: | :-----: |
| Chrome version < 80 [Windows] | | | | | | Chrome version <= 80 [Windows] | ✔ | ✔ | ✔ | ✔ |
| Chrome version > 80 [Windows] | ✔ | ✔ | ✔ | ✔ | | Chrome version > 80 [Windows] | ✔ | ✔ | ✔ | ✔ |
| Chrome [MacOS]<br />(need password) | ✔ | ✔ | ✔ | ✔ | | Chrome [MacOS]<br />(require password) | ✔ | ✔ | ✔ | ✔ |
| Edge [Windows] | ✔ | ✔ | ✔ | ✔ | | Edge [Windows] | ✔ | ✔ | ✔ | ✔ |
| Edge [MacOS]<br />(need password) | ✔ | ✔ | ✔ | ✔ | | Edge [MacOS]<br />(require password) | ✔ | ✔ | ✔ | ✔ |
| 360 Secure Browser [Windows] | ✔ | ✔ | ✔ | ✔ | | 360 Speed Browser [Windows] | ✔ | ✔ | ✔ | ✔ |
| QQ Browser [Windows] | ✔ | ✔ | ✔ | ✔ | | QQ Browser [Windows] | ✔ | ✔ | ✔ | ✔ |
| FireFox [Windows] | ✖ | ✖ | ✖ | ✖ | | FireFox [Windows] | ✖ | ✖ | ✖ | ✖ |
| FireFox [MacOS] | ✖ | ✖ | ✖ | ✖ | | FireFox [MacOS] | ✖ | ✖ | ✖ | ✖ |
| Safari [MacOS] | ✖ | ✖ | ✖ | ✖ | | Safari [MacOS] | ✖ | ✖ | ✖ | ✖ |
| Internet Explorer [Windows] | ✖ | ✖ | ✖ | ✖ | | Internet Explorer [Windows] | ✖ | ✖ | ✖ | ✖ |
| 360 Speed Browser [Windows] | ✖ | ✖ | ✖ | ✖ | | 360 Secure Browser [Windows] | ✖ | ✖ | ✖ | ✖ |
| Chrome [Linux] | ✖ | ✖ | ✖ | ✖ | | Chrome [Linux] | ✖ | ✖ | ✖ | ✖ |
@ -82,13 +82,13 @@ GLOBAL OPTIONS:
| :----- | :------: | :-----: | :--------: | :---: | :------------: | | :----- | :------: | :-----: | :--------: | :---: | :------------: |
| 39.85% | 22.26% | 9.28% | 6.5% | 5.65% | 4.74% | | 39.85% | 22.26% | 9.28% | 6.5% | 5.65% | 4.74% |
Based on those two lists, I woulf support those browser in the future Based on those two lists, I would support those browsers in the future
- [x] Chrome - [x] Chrome
- [x] QQ browser - [x] QQ browser
- [x] Edge - [x] Edge
- [x] 360 secure browser - [x] 360 speed browser
- [ ] 360 speed browser - [ ] 360 secure browser
- [ ] Safari - [ ] Safari
- [ ] Firefox - [ ] Firefox
- [ ] IE - [ ] IE

@ -0,0 +1,21 @@
//package utils
//
//var (
// browserList = map[string]struct {
// Dir string
// Command string
// }{
// "chrome": {
// chromeDir,
// Chrome,
// },
// "edge": {
// edgeDir,
// Edge,
// },
// }
//)

@ -1 +0,0 @@
package utils

@ -18,8 +18,8 @@ const (
chromeKeyFile = "/AppData/Local/Google/Chrome/User Data/Local State" chromeKeyFile = "/AppData/Local/Google/Chrome/User Data/Local State"
edgeDir = "/AppData/Local/Microsoft/Edge/User Data/*/" edgeDir = "/AppData/Local/Microsoft/Edge/User Data/*/"
edgeKeyFile = "/AppData/Local/Microsoft/Edge/User Data/Local State" edgeKeyFile = "/AppData/Local/Microsoft/Edge/User Data/Local State"
secure360Dir = "/AppData/Local/360chrome/Chrome/User Data/*/" speed360Dir = "/AppData/Local/360chrome/Chrome/User Data/*/"
secure360KeyFile = "" speed360KeyFile = ""
qqBrowserDir = "/AppData/Local/Tencent/QQBrowser/User Data/*/" qqBrowserDir = "/AppData/Local/Tencent/QQBrowser/User Data/*/"
qqBrowserKeyFile = "" qqBrowserKeyFile = ""
) )
@ -39,9 +39,9 @@ var (
edgeDir, edgeDir,
edgeKeyFile, edgeKeyFile,
}, },
"360secure": { "360speed": {
secure360Dir, speed360Dir,
secure360KeyFile, speed360KeyFile,
}, },
"qq": { "qq": {
qqBrowserDir, qqBrowserDir,

Loading…
Cancel
Save