
Solve coding problems effortlessly with AI-powered assistance
Features • Installation • Setup • Usage • Supported Platforms • Technical Details
- 🚀 Smart Problem Solving - Automatically solves coding problems on:
- LeetCode
- GeeksForGeeks (GFG)
- HackerRank
- CodeChef
- And more!
- 🤖 AI-Powered - Utilizes Google's Gemini AI for intelligent solutions
- ⚡ Auto-Solve Mode - Automatically solves problems as you browse
- 🎯 Multiple Languages - Supports Python, Java, C++, JavaScript and more
- 🎨 Clean Interface - Modern and intuitive user interface
- 🔒 CSP Compliant - Works with strict Content Security Policies on platforms like GeeksForGeeks
-
Clone this repository:
git clone https://github.com/yourusername/Solver_Ext.git
-
Open Chrome and navigate to:
chrome://extensions/
-
Enable "Developer mode" in the top right
-
Click "Load unpacked" and select the extension directory
-
Get your Gemini API key:
- Visit Google AI Studio
- Create a new API key
- Copy the key
-
Configure the extension:
- Click the extension icon in Chrome
- Enter your API key in the settings
- Click "Save"
- Navigate to a problem on any supported platform
- Click the extension icon
- Click "Solve Problem"
- Watch as the solution is automatically applied
- Click the extension icon
- Toggle "Auto-Solve" to ON
- Solutions will be automatically applied as you browse problems
- Use the configurable keyboard shortcut (default: Ctrl+Alt+S) to instantly solve the current problem
- Customize the shortcut in the extension popup
Currently supports:
- LeetCode
- GeeksForGeeks
- HackerRank
- CodeChef
- CodeWars
- HackerEarth
- Codeforces
- AtCoder
- SPOJ
- InterviewBit
The extension includes special handling for GeeksForGeeks' strict Content Security Policy (CSP):
- Uses direct DOM manipulation instead of script injection
- Implements a dedicated bridge script for GeeksForGeeks
- Provides robust editor detection and value setting
- Handles both Ace editor and textarea inputs
The extension uses specialized editor bridges to interact with different code editors:
- Monaco Editor (used by LeetCode, HackerRank)
- Ace Editor (used by GeeksForGeeks, CodeChef)
- CodeMirror (used by various platforms)
To work around Content Security Policy restrictions:
- Avoids inline script execution
- Uses message passing between content scripts and page context
- Implements direct DOM manipulation when necessary
- API keys are stored locally in your browser
- No data is collected or stored externally
- All processing happens in your browser
If you encounter issues:
- Verify your Gemini API key is valid
- Ensure you're on a supported platform
- Try refreshing the page
- Disable and re-enable the extension
- Check the browser console for error messages
Common Error Messages
Error | Solution |
---|---|
"API key not found" | Enter your Gemini API key in the extension settings |
"No code editor found" | Make sure you're on a page with a code editor |
"Failed to apply solution" | Try refreshing the page and waiting for the editor to fully load |
"CSP blocked script execution" | The extension will automatically try alternative methods |
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for competitive programmers