A chrome extension which automatically commits your leetcode solution to a predefined repository you connected earlier.
Special Mentions: Wahaj Javed Alam
-
Download the Zip File from the Github Page
- Visit the Github Page.
- Download the Zip File by clicking on the "Code" button and selecting "Download ZIP."
-
Extract it into any directory in your PC
- After downloading, extract the contents of the ZIP file into any directory of your choice on your computer.
-
Open your browser (Chrome or Opera GX or Brave)
- Ensure you have either Google Chrome or Opera GX installed. This extension is designed to work on browsers supporting the Chrome Web Store.
-
Go to Extensions
- Open your browser and navigate to the Extensions page.
- In Chrome: Click on the three dots in the top-right corner, go to "More tools," and then select "Extensions."
- In Opera GX or Brave: Click on the browser menu, go to "Extensions," and then select "Manage Extensions."
- Open your browser and navigate to the Extensions page.
-
Enable Developer Mode in the Top bar
- Once on the Extensions page, look for a checkbox or toggle named "Developer mode" in the top-right corner.
- Enable Developer Mode.
-
Load the Extension
- Look for an option to "Load unpacked" or "Load extension" on the Extensions page.
- Click on it and select the directory where you extracted the contents of the ZIP file.
-
Verify Installation
- The extension should now be visible in your list of installed extensions.
- Ensure it is enabled and working as expected.
- Open your web browser and go to GitHub.
- Log in to your GitHub account if you are not already logged in.
- In the top-right corner of the GitHub page, click on your profile picture, and then click on "Settings."
- In the left sidebar, scroll down and click on "Developer settings."
- In the Developer settings menu, click on "Personal access tokens. (Fine Grained Tokens)"
- Click the "Generate token" button.
- Provide a name for your token in the "Token name" field.
- Select the repo you want to push in. Choose only the permissions necessary (admin, commit statuses, contents).
- Scroll down and click the "Generate token" button at the bottom of the page.
Once the token is generated, GitHub will display it. Copy the token and save it in a secure location immediately.
- The URL would look like this below:
https://leetcode.com/submissions/detail/1163743480/
Enter your GitHub Username, Repository Name, and GitHub Access Token extracted earlier in the extension, and voilà
- Open the extension or application where you need to enter your GitHub details.
- Provide your GitHub username in the designated field.
- Enter the repository name associated with your solution.
- Paste the GitHub access token you extracted earlier into the relevant field.
- Click on COMMIT TO GITHUB button.
Your solution would get committed now successfully.