Closed rogerogers closed 2 years ago
it is enough to check the name of the directory (it is now in the "Network" folder) containing the Cookies database, that saves the file stat.
dir := filepath.Dir(s.FileNameStr)
if filepath.Base(dir) == `Network` { // Chrome 96
dir = filepath.Dir(dir)
}
stateFile, err := filepath.Abs(filepath.Join(filepath.Dir(dir), `Local State`))
...
Inlatest version of chrome, cookie file position has changed