This chrome extension allows users to add and displays recent activity of your LeetCode friends. It works based on the LeetCode GraphQL API to retrieve recent activities of friends.
- Add and Remove friends.
- Display recent activity for each of your LeetCode friends.
- Clone the Repository:
git clone https://github.com/pandfun/LeetCode-Friends.git-
Set Up the Extension on Chrome:
- Open Chrome and go to
chrome://extensions. - Enable "Developer mode" (top right corner).
- Click "Load unpacked" (top left corner).
- Select the
LeetCode-Friendsfolder.
- Open Chrome and go to
-
Change how many recent submissions are fetched for each user:
1: Navigate to :
src/graphql/problems.js2: Go the line having this (or click on the hyperline above to find the line):
const url = "https://leetcode.com/graphql"; const NUM_SUBMISSIONS = 5; // Change this // Get the recent AC Submissions for a user export const getRecentAcSubmissions = async (username, limit = NUM_SUBMISSIONS) => {...}
3: Modify the value of
NUM_SUBMISSIONS(Leetcode allows a max value of20).
Note
A higher value would mean fetching more data. This can slow down the time to fetch user submissions.



