From 1308569c9de2da68a738683b24e02e020e672e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=8D=E1=B4=8F=E1=B4=8F=C9=B4D4=CA=80=E1=B4=8B?= Date: Mon, 29 Jun 2020 15:18:41 +0800 Subject: [PATCH] format browser name --- README.md | 16 ++++++++-------- utils/utils_linux | 21 +++++++++++++++++++++ utils/utils_linux.go | 1 - utils/utils_windows.go | 10 +++++----- 4 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 utils/utils_linux delete mode 100644 utils/utils_linux.go diff --git a/README.md b/README.md index c4ccc72..eee3832 100644 --- a/README.md +++ b/README.md @@ -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]
(need password) | ✔ | ✔ | ✔ | ✔ | +| Chrome [MacOS]
(require password) | ✔ | ✔ | ✔ | ✔ | | Edge [Windows] | ✔ | ✔ | ✔ | ✔ | -| Edge [MacOS]
(need password) | ✔ | ✔ | ✔ | ✔ | -| 360 Secure Browser [Windows] | ✔ | ✔ | ✔ | ✔ | +| Edge [MacOS]
(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 \ No newline at end of file diff --git a/utils/utils_linux b/utils/utils_linux new file mode 100644 index 0000000..3b5d61c --- /dev/null +++ b/utils/utils_linux @@ -0,0 +1,21 @@ +//package utils +// + +//var ( +// browserList = map[string]struct { +// Dir string +// Command string +// }{ +// "chrome": { +// chromeDir, +// Chrome, +// }, +// "edge": { +// edgeDir, +// Edge, +// }, +// } +//) + + + diff --git a/utils/utils_linux.go b/utils/utils_linux.go deleted file mode 100644 index d4b585b..0000000 --- a/utils/utils_linux.go +++ /dev/null @@ -1 +0,0 @@ -package utils diff --git a/utils/utils_windows.go b/utils/utils_windows.go index b561007..ccb091b 100644 --- a/utils/utils_windows.go +++ b/utils/utils_windows.go @@ -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,