I want to access my Chrome stored cookies from the JavaScript console. Is this possible?
All the cookies are also stored in a single file called Cookies. Launch File Explorer and insert the following path into the address bar: “C:\Users\Your_User_Name\AppData\Local\Microsoft\Edge\User Data\Default” - remember to replace Your_User_Name with the name of your Windows 10 user account.
No. Cookies are stored on the hosting web server. One would have to have access to that server or at least to the web site that stores the cookies. Besides, cookies are of no value to anyone besides the cookie maker.
If you only need the cookies for the active site: Have a look at document.cookie
. It contains semicolon-separated key=value
pairs.
Edit: Note that due to security concerns you can't access cookies from a different domain. When you run something from the console, it's the equivalent of it running directly from the page, so since they don't want a spam site getting your Facebook credentials, you'll have to go to each website separately.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With