diff --git a/core/browser.go b/core/browser.go index f7d0eeb..19988cf 100644 --- a/core/browser.go +++ b/core/browser.go @@ -27,6 +27,7 @@ const ( operaName = "Opera" operaGXName = "OperaGX" vivaldiName = "Vivaldi" + coccocName = "CocCoc" ) type Browser interface { diff --git a/core/browser_darwin.go b/core/browser_darwin.go index f9ae1c5..dd21891 100644 --- a/core/browser_darwin.go +++ b/core/browser_darwin.go @@ -23,6 +23,7 @@ const ( operaProfilePath = "/Users/*/Library/Application Support/com.operasoftware.Opera/" operaGXProfilePath = "/Users/*/Library/Application Support/com.operasoftware.OperaGX/" vivaldiProfilePath = "/Users/*/Library/Application Support/Vivaldi/*/" + coccocProfilePath = "/Users/*/Library/Application Support/Coccoc/*/" ) const ( @@ -33,6 +34,7 @@ const ( braveStorageName = "Brave" operaStorageName = "Opera" vivaldiStorageName = "Vivaldi" + coccocStorageName = "CocCoc" ) var ( @@ -116,6 +118,12 @@ var ( Storage: vivaldiStorageName, New: NewChromium, }, + "coccoc": { + ProfilePath: coccocProfilePath, + Name: coccocName, + Storage: coccocStorageName, + New: NewChromium, + }, } ) diff --git a/core/browser_windows.go b/core/browser_windows.go index 4e5f46e..6b1482a 100644 --- a/core/browser_windows.go +++ b/core/browser_windows.go @@ -36,6 +36,8 @@ const ( operaGXKeyPath = "/AppData/Roaming/Opera Software/Opera GX Stable/Local State" vivaldiProfilePath = "/AppData/Local/Vivaldi/User Data/Default/" vivaldiKeyPath = "/AppData/Local/Vivaldi/Local State" + coccocProfilePath = "/AppData/Local/CocCoc/Browser/User Data/Default/" + coccocKeyPath = "/AppData/Local/CocCoc/Browser/Local State" ) var ( @@ -129,6 +131,12 @@ var ( Name: vivaldiName, New: NewChromium, }, + "coccoc": { + ProfilePath: os.Getenv("USERPROFILE") + coccocProfilePath, + KeyPath: os.Getenv("USERPROFILE") + coccocKeyPath, + Name: coccocName, + New: NewChromium, + }, } )