Code Explainer

Explain selected code in plain English on GitHub.

ai
PlugThis prompt
Build a Chrome extension called "Code Explainer" that adds an "Explain" button to code blocks on GitHub, GitLab, and Stack Overflow. Selecting code and clicking the button sends the snippet plus its file language to GPT-4 with a prompt to produce a plain-English walkthrough (what it does, edge cases, suggested improvements). Show the explanation in a side panel with copy and "regenerate with more detail" actions. User-supplied OpenAI key. Permissions: storage, activeTab. Host permissions: https://github.com/*, https://gitlab.com/*, https://stackoverflow.com/*, https://api.openai.com/*. Manifest V3 with content script.

How to build it in 3 minutes

  1. Sign in to PlugThis and open the chat input.
  2. Copy the prompt above and paste it into the chat.
  3. PlugThis generates the full Manifest V3 extension in 60-90 seconds.
  4. Download the zip, extract it, and load it via chrome://extensions developer mode.

Related ideas