Transform passive video watching into active, intelligent learning with AI-powered chapter generation.
- Uses Chrome's Writer API for intelligent content generation
- Uses Rewriter API for improving chapter titles and summaries
- Uses Proofreader API for fixing transcript errors
- Uses Summarizer API for condensing long content
- Works offline once Gemini Nano model is downloaded
- Privacy-first: all processing happens locally on your device
- Click-to-seek: Jump to any chapter instantly
- Auto-highlight: Current chapter highlights as video plays
- Visual timeline: See video structure at a glance
- Export chapters as JSON for notes or documentation
- Share chapter breakdowns with study groups
- Integrate with note-taking apps
- β YouTube
- β Coursera
- β Udemy
- β LinkedIn Learning
- Clean, modern sidebar interface
- Dark/light mode support
- Responsive design
- Smooth animations
- π Interactive Transcript Tab - Full transcript with clickable timestamps
- π§ AI-Generated Quiz Tab - Test knowledge with 5 questions + explanations
- π‘ Double-Click to Explain - Double-click video or press Alt+E for instant AI explanations
- β¨οΈ Keyboard Shortcuts - 6 shortcuts for power users (Alt+G, Alt+C, Alt+T, Alt+Q, Alt+E, Alt+X)
- π― 3-Tab Interface - Chapters, Transcript, Quiz
- π Progress Tracking - Visual progress bars and quiz scoring
- π Deep Linking - Quiz questions link to relevant timestamps
This extension uses Chrome's new Built-in AI APIs:
- βοΈ Writer API - Generate chapters and quiz questions
- ποΈ Rewriter API - Improve text quality
- π€ Proofreader API - Fix grammar and spelling
- π Summarizer API - Create concise summaries
- π Translator API - Multi-language support
Setup Requirements:
- Use Chrome Dev or Chrome Canary 137+ (not regular Chrome)
- Join the Origin Trial and add token to manifest
- Enable Chrome flags for each API
- Download Gemini Nano model (~22GB)
π See SETUP_GUIDE.md for complete setup instructions
Without AI setup, the extension will work in "Fallback Mode" with basic features only.
-
Clone or download this repository
git clone https://github.com/yourusername/video-learning-accelerator.git cd video-learning-accelerator -
Open Chrome Extensions page
- Navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Navigate to
-
Load the extension
- Click "Load unpacked"
- Select the extension folder
- Extension icon should appear in toolbar
-
Enable Chrome AI (if not already enabled)
- Chrome 127+ required
- AI features may need to be enabled in
chrome://flags - Search for "Prompt API" and enable it
-
Visit a supported video platform
- Go to YouTube, Coursera, Udemy, or LinkedIn Learning
- Open any video
-
Extension auto-activates
- Sidebar appears on the right side
- Extension detects video automatically
-
Generate chapters
- Click "Generate Chapters" button
- AI analyzes the video content (10-30 seconds)
- Chapters appear in sidebar
-
Navigate with chapters
- Click any chapter to jump to that timestamp
- Current chapter highlights as video plays
- Export chapters using the export button
- Click "Transcript" tab to view full transcript
- Click any purple timestamp to jump to that moment
- Real YouTube captions when available
- Fallback to estimated timestamps
- Click "Quiz" tab after generating chapters
- Click "Generate Quiz" for 5 AI questions
- Answer questions with instant feedback
- See grade, stats, and answer review
- Click "Review at X:XX" to jump to relevant chapter
- Double-click anywhere on the video
- OR press Alt+E keyboard shortcut
- AI explains what's happening at that moment
- Tooltip auto-dismisses after 8 seconds
- Works best after generating chapters
- Alt+G - Generate chapters
- Alt+C - Switch to Chapters tab
- Alt+T - Switch to Transcript tab
- Alt+Q - Switch to Quiz tab
- Alt+E - Explain current moment
- Alt+X - Close sidebar
- Click β¨οΈ icon in header to see all shortcuts
- Click the π₯ Export button in chapters header
- Downloads JSON file with all chapter data
- Includes video metadata and timestamps
- Click the π Copy button
- Formatted text copied to clipboard
- Paste into notes or documents
βββββββββββββββββββ
β Content Script β β Runs on video pages
β (content.js) β β Detects videos, creates UI
ββββββββββ¬βββββββββ
β
β Messages
βββββββββββββββββββ
β Background SW β β Service worker
β (background.js) β β Routes messages, manages offscreen
ββββββββββ¬βββββββββ
β
β Forwards to
βββββββββββββββββββ
β Offscreen Doc β β AI processing
β (offscreen.js) β β Chrome AI APIs
βββββββββββββββββββ
-
Transcript Extraction
- Platform-specific selectors for each video site
- Falls back to page metadata if transcript unavailable
-
AI Analysis (NEW APIs!)
- Writer API: Generates chapters from transcript analysis
- Rewriter API: Improves chapter titles and summaries
- Proofreader API: Fixes grammar in transcripts
- Summarizer API: Creates concise chapter summaries
- Sends context-aware prompts with video metadata
- Parses and validates JSON responses
-
Fallback System
- If Writer API unavailable: tries Summarizer + Rewriter combo
- If all AI unavailable: rule-based chapter generation
- Divides content into logical sections
- Always provides useful output
video-learning-accelerator/
βββ manifest.json # Extension configuration
βββ background.js # Service worker
βββ content.js # Content script (video pages)
βββ offscreen.html # Offscreen document
βββ offscreen.js # AI processing
βββ popup.html # Extension popup
βββ popup.js # Popup logic
βββ popup.css # Popup styles
βββ sidebar.css # Sidebar styles
βββ icons/ # Extension icons
β βββ icon16.png
β βββ icon48.png
β βββ icon128.png
βββ README.md # This file
- Chrome 127+ (for AI features)
- Basic knowledge of Chrome extensions
- Text editor or IDE
-
Make changes to source files
- Edit JavaScript, CSS, or HTML files
- No build process required (vanilla JS)
-
Reload extension
- Go to
chrome://extensions/ - Click reload icon on extension card
- Or use Ctrl+R on extensions page
- Go to
-
Test on video platforms
- Open YouTube or other supported platform
- Check console for debug messages (F12)
- Use
window.vlaDebug()in console for status
// In browser console on video page:
// Check extension status
window.vlaDebug();
// Check if video detected
document.querySelector('video');
// Check transcript extraction
transcriptText;
// Check generated chapters
chapterData;- Check that you're on a supported platform (YouTube, Coursera, Udemy, LinkedIn Learning)
- Refresh the page
- Check browser console for errors
- Ensure video is playing or has played
- Check that transcript is available (try playing video first)
- Look for error messages in sidebar
- Check if Chrome AI APIs are available in your region
- Chrome 137+ (Dev/Canary) required
- Enable flags:
chrome://flags/#writer-api-for-gemini-nano - Join origin trial and add token to manifest.json
- Download Gemini Nano model (22GB storage needed)
- AI may not be available in all regions yet
- Extension will use fallback chapter generation
- See SETUP_GUIDE.md for detailed instructions
- Some platforms may block transcript access
- Extension will use page title and description as fallback
- Try playing the video to trigger transcript loading
- Quiz generation from chapters
- Note-taking integration
- Bookmark important moments
- Multi-language support
- Custom chapter editing
- Keyboard shortcuts
- Chapter search
- Video speed recommendations
- Learning progress tracking
- Cross-video learning paths
- Vimeo
- Khan Academy
- edX
- Skillshare
- Pluralsight
MIT License - see LICENSE file for details
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- Issues: Report bugs on GitHub Issues
- Questions: Open a discussion on GitHub
- Email: [email protected]
- Built with Chrome's experimental AI APIs
- Design system inspired by Perplexity AI
- Icons from various open-source projects
- No data collection: All processing happens locally
- No external APIs: Uses Chrome's built-in AI only
- No tracking: No analytics or telemetry
- Open source: Code is fully auditable
Your video transcripts never leave your browser.
Made with β€οΈ for learners everywhere
Star β this repo if you find it useful!