Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down