fa058328220526cdca09c8a3c122da98a3ce4a75
🎓 Quiz Helper - AI-Powered Quiz Assistant
A web browser extension for Chrome which uses AI to help with online quizzes by highlighting correct answers in green (It's correct 60% of the time, every time).
✨ Features
- 🤖 AI-Powered: Uses ChatGPT (GPT-3.5-turbo) for intelligent answer analysis
- 💡 Smart Hints: Highlights correct answers in green
- 🎯 Accurate: ChatGPT sees actual answer text for better context
- ⚡ Auto-Detection: Automatically detects single vs. multiple answer questions
- 🔒 Private: All data stays between you and OpenAI
- 💰 Affordable: ~$0.001 per question (100 questions ≈ $0.10-0.20)
📋 Requirements
- Google Chrome or Chromium-based browser (Edge, Brave, etc.)
- OpenAI API key (get one free here)
- Internet connection
🚀 Installation
-
Download this repository:
- Click the green "Code" button above
- Select "Download ZIP"
- Extract the ZIP file
-
Load in Chrome:
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked"
- Select the
extensionfolder from the extracted files
- Open Chrome and navigate to
-
Add API Key:
- Click the extension icon in your toolbar
- Paste your OpenAI API key
- Click "Save API Key"
🎯 How to Use
- Navigate to a quiz (works best with Microsoft Learn practice assessments)
- Click the extension icon in your toolbar
- Toggle the switch to "On"
- Refresh Page - Correct answer(s) will be highlighted in green after a brief moment
- Select your answers based on the hints
- Toggle off when done to remove hints
🔧 Configuration
The extension requires an OpenAI API key to function. To get one:
- Visit platform.openai.com/api-keys
- Sign up or log in
- Click "Create new secret key"
- Copy the key (starts with
sk-...) - Paste it in the extension popup
🛠️ Technical Details
How It Works
- Question Detection: Scans the page for quiz questions using multiple selectors
- Answer Identification: Finds associated answer choices (radio buttons, checkboxes)
- Smart Prompting: Sends the question and answer choices to ChatGPT
- Response Matching: Matches ChatGPT's response to actual answer text
- Hint Display: Highlights correct answer(s) in green
Files Structure
extension/
├── manifest.json # Extension configuration
├── content.js # Main logic (question detection, ChatGPT API)
├── popup.html # Popup interface
├── popup.js # Popup functionality
├── background.js # Background service worker
├── icon16.png # Icon (16x16)
├── icon48.png # Icon (48x48)
└── icon128.png # Icon (128x128)
🔒 Privacy & Security
- Your API key is stored locally in Chrome's sync storage
- No data is collected or sent anywhere except directly to OpenAI
- The extension only runs when you explicitly enable it
- All communication is encrypted (HTTPS)
⚠️ Disclaimer
For Educational Use Only
This extension is designed for learning and study purposes. Use responsibly and in accordance with your institution's academic integrity policies. The accuracy of answers depends on ChatGPT's knowledge and may not always be 100% correct.
🐛 Troubleshooting
Extension won't load:
- Make sure all files are in the
extensionfolder - Check that
manifest.jsonhas no syntax errors - Ensure all three icon files are present
No hints appearing:
- Check that you've added a valid OpenAI API key
- Open browser console (F12) and look for error messages
- Make sure the extension toggle is "On"
- Try refreshing the quiz page
API errors:
- Verify your API key is correct (starts with
sk-) - Ensure you have credits in your OpenAI account
- Look for rate limit messages in console
🤝 Contributing
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
📄 License
MIT License - feel free to use and modify as needed.
Made with ❤️ for students and learners everywhere
Languages
JavaScript
88.5%
HTML
11.5%
