This Chrome extension is designed to enhance your coding experience on LeetCode by providing timely assistance when working on coding problems. When a user spends more than 30 minutes on a problem, the extension opens a new window displaying the code they've written, a detailed explanation of the solution, and an accompanying video tutorial. This ensures that users can quickly grasp the underlying logic and concepts without spending excessive time on a single problem. The extension maintains the user's original logic and variable names, ensuring that their approach remains intact.
- Time-based Alerts: Detects when the user spends over 30 minutes on a LeetCode problem.
- Solution Display: Opens a new window with the code written by the user, providing a side-by-side view of the code and its explanation.
- Video Tutorial: Includes a video tutorial for a more comprehensive understanding of the problem-solving approach.
- Logic Preservation: Maintains the original logic and variable names in the code, ensuring no alteration of the user's thought process.
Check out the demo of LeakCode in action!
- Clone this repository to your local machine:
git clone https://github.com/kashifalikhan36/LeakCode.git
- Navigate to
chrome://extensions/
in your Chrome browser. - Enable Developer mode (toggle switch at the top right).
- Click Load unpacked and select the folder where you cloned the repository.
- Enable certain Chrome flags to ensure the AI functionality works:
- Go to
chrome://flags/
- Enable Gemini Nano
- Enable Device Optimization
- Go to
- Wait a few hours for the AI functionality to activate.
- The extension should now be installed and active.
- Go to LeetCode and start solving a coding problem.
- If you spend more than 30 minutes on a problem, a new window will pop up.
- The new window will display:
- Your code with the original logic and variable names.
- A detailed explanation of the code.
- A video tutorial relevant to the problem.
- React/Vite
- Gemini Nano
- Chrome Extension API
If you would like to contribute to this project, please fork the repository and submit a pull request. Ensure that your code follows the existing style and conventions used in the project.
This project is licensed under the MIT License. See the LICENSE file for details.