Files
extension-quiz-helper/README.md
T

128 lines
4.3 KiB
Markdown
Raw Normal View History

# 🎓 Quiz Helper - AI-Powered Quiz Assistant
2026-01-08 11:42:29 -07:00
A web browser extension for Chrome which uses AI to help with online quizzes by highlighting correct answers in green (~100% Final Score Accuracy on Microsoft Practice Assessments).
![Chrome Extension](https://img.shields.io/badge/Chrome-Extension-green)
![License](https://img.shields.io/badge/license-MIT-blue)
![AI Powered](https://img.shields.io/badge/AI-ChatGPT-orange)
2026-01-07 17:12:51 -07:00
![Screenshot](screenshot.jpg)
## ✨ Features
2026-01-07 20:17:42 -07:00
- 🤖 **AI-Powered**: Uses ChatGPT (GPT-4o) for intelligent answer analysis
2026-01-07 17:19:24 -07:00
- 💡 **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
## 📋 Requirements
- Google Chrome or Chromium-based browser (Edge, Brave, etc.)
- OpenAI API key ([get one free here](https://platform.openai.com/api-keys))
- Internet connection
## 🚀 Installation
1. **Download** this repository:
- Click the green "Code" button above
- Select "Download ZIP"
- Extract the ZIP file
2. **Load in Chrome**:
- Open Chrome and navigate to `chrome://extensions/`
- Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked"
2026-01-12 10:26:41 -07:00
- Select the `extension/unpacked` folder from the extracted files
3. **Add API Key**:
- Click the extension icon in your toolbar
- Paste your OpenAI API key
- Click "Save API Key"
## 🎯 How to Use
1. **Navigate to a quiz** (works best with Microsoft Learn practice assessments)
2. **Click the extension icon** in your toolbar
3. **Toggle the switch to "On"**
2026-01-08 11:42:29 -07:00
4. **Select your answers** based on the hints
5. **Toggle off** when done to remove hints
## 🔧 Configuration
The extension requires an OpenAI API key to function. To get one:
1. Visit [platform.openai.com/api-keys](https://platform.openai.com/api-keys)
2. Sign up or log in
3. Click "Create new secret key"
4. Copy the key (starts with `sk-...`)
5. Paste it in the extension popup
## 🛠️ Technical Details
### How It Works
1. **Question Detection**: Scans the page for quiz questions using multiple selectors
2. **Answer Identification**: Finds associated answer choices (radio buttons, checkboxes)
3. **Smart Prompting**: Sends the question and answer choices to ChatGPT
4. **Response Matching**: Matches ChatGPT's response to actual answer text
2026-01-07 17:41:40 -07:00
5. **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 `extension` folder
- Check that `manifest.json` has no syntax errors
- Ensure all three icon files are present
**No hints appearing:**
2026-01-08 11:42:29 -07:00
- Try clicking "Retry Scan" on extnsion popup
- Make sure the extension toggle is "On"
- Check that you've added a valid OpenAI API key
- Open browser console (F12) and look for error messages
- Try refreshing the quiz page
**API errors:**
- Verify your API key is correct (starts with `sk-`)
2026-01-07 17:22:38 -07:00
- 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.
2026-01-07 20:17:42 -07:00
**Made with ❤️ for students and learners everywhere!**