Skip to content

Commit

Permalink
feat: support 360speedX and sogou (#454)
Browse files Browse the repository at this point in the history
* fix: Update the configuration file path of Sogou browser

* feat: support 360speedX browser
  • Loading branch information
Aquilao authored Nov 15, 2024
1 parent 9121178 commit 410e780
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions browser/browser_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@ var (
profilePath: yandexProfilePath,
dataTypes: types.DefaultYandexTypes,
},
"360": {
"360-speed": {
name: speed360Name,
profilePath: speed360ProfilePath,
dataTypes: types.DefaultChromiumTypes,
},
"360-speedx": {
name: speedX360Name,
profilePath: speedX360ProfilePath,
dataTypes: types.DefaultChromiumTypes,
},
"qq": {
name: qqBrowserName,
profilePath: qqBrowserProfilePath,
Expand Down Expand Up @@ -105,14 +110,15 @@ var (
edgeProfilePath = homeDir + "/AppData/Local/Microsoft/Edge/User Data/Default/"
braveProfilePath = homeDir + "/AppData/Local/BraveSoftware/Brave-Browser/User Data/Default/"
speed360ProfilePath = homeDir + "/AppData/Local/360chrome/Chrome/User Data/Default/"
speedX360ProfilePath = homeDir + "/AppData/Local/360ChromeX/Chrome/User Data/Default/"
qqBrowserProfilePath = homeDir + "/AppData/Local/Tencent/QQBrowser/User Data/Default/"
operaProfilePath = homeDir + "/AppData/Roaming/Opera Software/Opera Stable/"
operaGXProfilePath = homeDir + "/AppData/Roaming/Opera Software/Opera GX Stable/"
vivaldiProfilePath = homeDir + "/AppData/Local/Vivaldi/User Data/Default/"
coccocProfilePath = homeDir + "/AppData/Local/CocCoc/Browser/User Data/Default/"
yandexProfilePath = homeDir + "/AppData/Local/Yandex/YandexBrowser/User Data/Default/"
dcBrowserProfilePath = homeDir + "/AppData/Local/DCBrowser/User Data/Default/"
sogouProfilePath = homeDir + "/AppData/Roaming/SogouExplorer/Webkit/Default/"
sogouProfilePath = homeDir + "/AppData/Local/Sogou/SogouExplorer/User Data/Default/"

firefoxProfilePath = homeDir + "/AppData/Roaming/Mozilla/Firefox/Profiles/"
)
1 change: 1 addition & 0 deletions browser/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const (
yandexName = "Yandex"
firefoxName = "Firefox"
speed360Name = "360speed"
speedX360Name = "360speedX"
qqBrowserName = "QQ"
dcBrowserName = "DC"
sogouName = "Sogou"
Expand Down

0 comments on commit 410e780

Please sign in to comment.