format browser name

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-06-29 15:18:41 +08:00
parent b448aa223e
commit 1308569c9d
4 changed files with 34 additions and 14 deletions
+8 -8
View File
@@ -53,18 +53,18 @@ GLOBAL OPTIONS:
| Browser | Password | Cookie | Bookmark | History |
| :---------------------------------- | :------: | :----: | :------: | :-----: |
| 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 [MacOS]<br />(need password) | ✔ | ✔ | ✔ | ✔ |
| 360 Secure Browser [Windows] | ✔ | ✔ | ✔ | ✔ |
| Edge [MacOS]<br />(require password) | ✔ | ✔ | ✔ | ✔ |
| 360 Speed Browser [Windows] | ✔ | ✔ | ✔ | ✔ |
| QQ Browser [Windows] | ✔ | ✔ | ✔ | ✔ |
| FireFox [Windows] | ✖ | ✖ | ✖ | ✖ |
| FireFox [MacOS] | ✖ | ✖ | ✖ | ✖ |
| Safari [MacOS] | ✖ | ✖ | ✖ | ✖ |
| Internet Explorer [Windows] | ✖ | ✖ | ✖ | ✖ |
| 360 Speed Browser [Windows] | ✖ | ✖ | ✖ | ✖ |
| 360 Secure Browser [Windows] | ✖ | ✖ | ✖ | ✖ |
| Chrome [Linux] | ✖ | ✖ | ✖ | ✖ |
@@ -82,13 +82,13 @@ GLOBAL OPTIONS:
| :----- | :------: | :-----: | :--------: | :---: | :------------: |
| 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] QQ browser
- [x] Edge
- [x] 360 secure browser
- [ ] 360 speed browser
- [x] 360 speed browser
- [ ] 360 secure browser
- [ ] Safari
- [ ] Firefox
- [ ] IE
+21
View File
@@ -0,0 +1,21 @@
//package utils
//
//var (
// browserList = map[string]struct {
// Dir string
// Command string
// }{
// "chrome": {
// chromeDir,
// Chrome,
// },
// "edge": {
// edgeDir,
// Edge,
// },
// }
//)
-1
View File
@@ -1 +0,0 @@
package utils
+5 -5
View File
@@ -18,8 +18,8 @@ const (
chromeKeyFile = "/AppData/Local/Google/Chrome/User Data/Local State"
edgeDir = "/AppData/Local/Microsoft/Edge/User Data/*/"
edgeKeyFile = "/AppData/Local/Microsoft/Edge/User Data/Local State"
secure360Dir = "/AppData/Local/360chrome/Chrome/User Data/*/"
secure360KeyFile = ""
speed360Dir = "/AppData/Local/360chrome/Chrome/User Data/*/"
speed360KeyFile = ""
qqBrowserDir = "/AppData/Local/Tencent/QQBrowser/User Data/*/"
qqBrowserKeyFile = ""
)
@@ -39,9 +39,9 @@ var (
edgeDir,
edgeKeyFile,
},
"360secure": {
secure360Dir,
secure360KeyFile,
"360speed": {
speed360Dir,
speed360KeyFile,
},
"qq": {
qqBrowserDir,