FireFox和Chrome浏览器Cookies存储路径记录(以便后续操作Cookies以实现某些鲜为人知的操作)

版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/qq_32590631/article/details/82864830

一、FireFox:

在windows环境下

Cookie数据位于:%APPDATA%\Mozilla\Firefox\Profiles\ 目录中的xxx.default目录,名为cookies.sqlite的文件,如

C:\Users\nuym\AppData\Roaming\Mozilla\Firefox\Profiles\hsi4acx.default\cookies.sqlite

在Mac环境下

操作方法如下(摘自官网)参考

Finding your profile without opening Firefox

  1. Click the Finder icon in the dock. On the menu bar, click the Go menu, hold down the option or alt key and select Library. A window will open containing your Library folder.
  2. Open the Application Support folder, then open the Firefox folder, and then the Profiles folder.
  3. Your profile folder is within this folder. If you only have one profile, its folder would have "default" in the name.

简单来说就是 去Finder 点前往,按住option 键 然后点击资源库 ,就会新开一个Finder窗口,然后去Application Support 就能找到FireFox目录了

或者直接去Finder 前往该目录

/Users/huangkaikang/Library/Application Support/Firefox/Profiles

二、Chrome

在Windows下,直接找下面这个路径就可以

C:\Users\%USERNAME%\AppData\Local\Google\Chrome\UserData\Default\

例如

C:\Users\Alice\AppData\Local\Google\Chrome\User Data\Default

在mac下

~/Library/Application Support/Google/Chrome

在Linux 下

~/.config/google-chrome

详见参考资料

猜你喜欢

转载自blog.csdn.net/qq_32590631/article/details/82864830