Skip to content

Commit 8b5c044

Browse files
committed
- 1.0 version of chat GPT based LeetCode AI buddy
1 parent 6278575 commit 8b5c044

File tree

15 files changed

+2142
-0
lines changed

15 files changed

+2142
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
node_modules/
3+
build/
4+
background.js
5+
.DS_Store
6+
*.zip

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# ChatGPT for LeetCode
2+
3+
A browser extension that solves the leetcode problem automatically from the problem statement.
4+
5+
![Screenshot](screenshot.jpeg?raw=true)
6+
7+
## Installation
8+
9+
### Install to Chrome/Edge
10+
11+
#### Install from Chrome Web Store (Preferred)
12+
13+
<coming soon>
14+
#### Local Install
15+
16+
1. Download `chrome.zip` from [Releases](https://github.com/xer0k00l/chat-gpt-leetcode-extension/releases)
17+
2. Unzip the file
18+
3. In Chrome/Edge go to the extensions page (`chrome://extensions` or `edge://extensions`).
19+
4. Enable Developer Mode.
20+
5. Drag the unzipped folder anywhere on the page to import it (do not delete the folder afterwards).
21+
22+
### Install to Firefox
23+
24+
#### Install from Mozilla Add-on Store (Preferred)
25+
26+
<https://addons.mozilla.org/en-US/firefox/addon/chatgpt-for-leetcode/> <coming soon>
27+
28+
#### Local Install
29+
30+
1. Download `firefox.zip` from [Releases](https://github.com/xer0k00l/chat-gpt-leetcode-extension/releases)
31+
2. Unzip the file
32+
3. Go to `about:debugging`, click "This Firefox" on the sidebar
33+
4. Click "Load Temporary Add-on" button, then select any file in the unzipped folder
34+
35+
## Build from source
36+
37+
1. Clone the repo
38+
2. Install dependencies with `npm`
39+
3. Run `./build.sh` for Chrome, `./build.sh firefox` for Firefox
40+
4. Load the `build` directory to your browser
41+
42+
## Credit
43+
44+
This project is inspired by [wong2/chat-gpt-google-extension](https://github.com/wong2/chat-gpt-google-extension)

build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
rm -rf build
4+
5+
npx esbuild src/content-script/index.mjs src/background/index.mjs --bundle --outdir=build
6+
7+
cp src/*.css build/
8+
cp src/*.png build/
9+
10+
MANIFEST_PATH=$([[ $1 == "firefox" ]] && echo "src/manifest.v2.json" || echo "src/manifest.json")
11+
cp $MANIFEST_PATH build/manifest.json

0 commit comments

Comments
 (0)