Flashcard
A lightweight Chrome extension that lets students turn highlighted text on any webpage into flashcards for active recall study.
Install / Use
/learn @PramisKunwar/FlashcardREADME
Highlight to Flashcard — Chrome Extension
A lightweight Chrome extension that lets students turn highlighted text on any webpage into flashcards for active recall study.



Purpose
When reading study material online, students often highlight text but never revisit it. This extension solves that by converting highlighted text into flashcards instantly — no accounts, no cloud, no complexity.
Features
- Highlight → Save: Select text on any webpage, right-click, and save it as a flashcard
- Question Prompt: A clean modal asks you to enter the question (front of card); the highlighted text becomes the answer (back of card)
- Popup Review: Click the extension icon to review your flashcards one at a time
- Show/Hide Answer: Test yourself by revealing the answer only when ready
- Delete Cards: Remove flashcards you've mastered
- Persistent Storage: Flashcards are saved locally using
chrome.storage.localand persist across browser restarts - Source Tracking: Each flashcard stores the source URL for reference
File Structure
flashcard-extension/
├── manifest.json
├── background.js
├── content.js
├── popup.html
├── popup.js
├── popup.css
└── icons/
├── icon48.png
└── icon128.png
Installation
- Download or clone this repository
- Open Chrome and navigate to
chrome://extensions - Enable Developer mode (toggle in top-right)
- Click Load unpacked
- Select the
flashcard-extensionfolder - The extension icon will appear in your toolbar
How to Use
- Highlight any text on a webpage
- Right-click → select "Save as Flashcard"
- Enter a question for the front of the card in the modal that appears
- Click Save Card
- Click the extension icon in the toolbar to review your flashcards
- Use Show Answer, Next, and Delete to study
Flashcard Data Format
Each flashcard is stored as a simple object:
{
"id": "1709654321000",
"question": "What is photosynthesis?",
"answer": "Photosynthesis is the process by which green plants convert sunlight into chemical energy...",
"url": "https://en.wikipedia.org/wiki/Photosynthesis",
"createdAt": "2026-03-05T10:00:00.000Z"
}
Tech Stack
- Manifest V3 — latest Chrome extension standard
- Vanilla JavaScript — no frameworks or build tools
- HTML + CSS — simple, clean UI
- Chrome APIs —
contextMenus,storage.local,tabs,runtime
Intentionally Not Included
- No AI features
- No login or accounts
- No cloud sync
- No spaced repetition
- No notifications or analytics
- No backend server
License
This project is made for Hack Club.
Related Skills
node-connect
331.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
331.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.6kCommit, push, and open a PR
