From e3e1e54bbed1c87748a10469793d89a81b93b531 Mon Sep 17 00:00:00 2001 From: Hee Hwang Date: Sun, 2 Jul 2023 11:29:58 -0700 Subject: [PATCH] Update Cookie setup due to Chromium configuration update --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4e68afc..b775b68 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ cargo install leetcode-cli ## Usage -**Make sure you have logged in to `leetcode.com` with `Chrome`**. See [Cookies](#cookies) for why you need to do this first. +**Make sure you have logged in to `leetcode.com` with `Firefox`**. See [Cookies](#cookies) for why you need to do this first. ```sh leetcode 0.4.0 @@ -168,19 +168,20 @@ csrf = "..." session = "..." ``` -For Example, using Chrome (after logging in to LeetCode): +For Example, using Firefox (after logging in to LeetCode): #### Step 1 -Open Chrome and navigate to the link below: +Open Firefox, press F12, and click `Storage` tab. + +#### Step 2 + +Expand `Cookies` tab on the left and select https://leetcode.com. -```sh -chrome://settings/cookies/detail?site=leetcode.com -``` #### Step 2 -Copy `Content` from `LEETCODE_SESSION` and `csrftoken` to `session` and `csrf` in your configuration file, respectively: +Copy `Value` from `LEETCODE_SESSION` and `csrftoken` to `session` and `csrf` in your configuration file, respectively: ```toml [cookies]