Skip to main content
LeetCode Play Button icon

LeetCode Play Button

leetpad

This extension simply adds play button and powerful keyboard shortcuts to your LeetCode editor. With one tap, it streams AI-generated leetcode solutions (via your local Ollama instance) directly into the Monaco editor, line by line or all at once. ✨ Features • 🟦 Floating Play Button Appears automatically inside LeetCode’s editor tab bar. Clean glassmorphism style with hover animations. • ⌨️ Keyboard Shortcuts o Tab → Insert full AI solution at once o Alt + M → Change AI model (e.g. deepseek-coder, llama2, etc.) o Alt + P → Change default prompt • 📜 Streaming AI Responses Integrates with your local Ollama server (port 11434). Solutions are streamed token-by-token and written directly into the Monaco editor. • 🔍 Smart Problem Capture Auto-extracts the current LeetCode problem statement and uses it as context for solution generation. • 🛠 Custom Prompt Modal Built-in textarea modal lets you override prompts without editing code. • 🎨 Modern UI Glassmorphism floating button + animated hover/press states. ________________________________________ How It Works 1. Open any LeetCode problem. 2. Click the Play button (or press Tab). 3. The extension sends the problem description + your prompt to Ollama (localhost:11434). 4. The AI model streams back Java code directly into LeetCode’s Monaco editor. ________________________________________ Why Use This? • 🚀 Skip manual copy-paste workflows • ⚡ Get Java code fast while keeping focus inside the editor • 🧑‍💻 Train with multiple solution approaches (brute vs optimized) • 🎯 Perfect for practice, study, or exploring AI-assisted coding ________________________________________ ________________________________________ Installation 1. Install the extension from Chrome Web Store. 2. Run Ollama locally on port 11434 with your preferred model (e.g. deepseek-coder). 3. Open leetcode.com and start solving! ________________________________________ Permissions • *://leetcode.com/* → inject Play button + handle editor • Localhost fetch → stream solutions from Ollama (http://localhost:11434/api/generate) ________________________________________ ✅ Works best with: Ollama + deepseek-coder (but supports any model you set). ⚠ Requires Ollama installed locally.

Bilder im Chrome Web Store

Discovery