Skip to content

akash-d-dev/Auto-quiz-solver-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

94 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


Auto Quiz Solver 2.0 Extension for Kalvium Community

πŸš€ Tired of solving quizzes manually? Use this browser extension to automatically solve Kalvium community quizzes! Just have your API keys ready. 😁

⭐ Show Some Love!

More than 10 people are using this, but no one has left a star! 😩 If you find this useful, please be responsible and leave a star! β­πŸ˜…

πŸ“Œ API Source Code

GitHub Repository


πŸ“– User Guide

πŸ”Ή How to Install the Extension in Your Browser

  1. Clone or download this repository (Cloning recommended to easily pull updates).
  2. Open the Extensions Manager tab in your browser.
  3. Enable Developer Mode.
  4. Click on Load Unpacked and select the entire extension directory.

πŸ”Ή How to Use

First Time Setup:

  1. After loading the extension, open kalvium.community.
  2. If you have no API keys stored, popups will appear asking for your LLM API keys.
    • You can skip any key by leaving it empty or clicking cancel.
    • At least one API key is required for the extension to work.

Managing API Keys:

  • Click the extension icon in your browser toolbar to open the popup.
  • View, edit, or add your API keys directly in the popup interface.
  • Keys are synced between the popup and the website automatically.
  • Green "(Present)" status means key is configured, Red "(Missing)" means no key.

Using the Extension:

  1. Navigate to any quiz module page on kalvium.community.
  2. The extension automatically detects quiz pages - no manual refresh needed!
  3. The "Start Quiz" or "Retake Quiz" button will turn green when ready.
  4. Click the green button, and the extension handles the rest! βœ…

Note: The extension works for both first attempts and retakes - it automatically detects which button is present!

Auto Start Mode:

  • Enable "Auto Start" in the extension popup to automatically start quizzes.
  • The extension will click the Start Quiz button and solve automatically.
  • Useful for solving multiple quizzes quickly!

❓ FAQs

πŸ”Ή What AI Models Are Supported?

The extension supports multiple AI providers:

  • Google Gemini: Gemini 2.5 Flash (Fastest & Cheapest), Gemini 2.5 Pro
  • OpenAI: GPT-5 Mini (Best for Quizzes), GPT-4o (Legacy)
  • xAI Grok: Grok 3 Mini, Grok 2

You can switch between models anytime in the extension popup.

πŸ”Ή What is Auto Start?

  • On: The quiz starts and solves automatically when you open a quiz page.
    • Great for batch-solving multiple quizzes.
  • Off: The "Start Quiz" button turns green, but you need to click it manually.
    • Gives you control over when to start.
image

πŸ”Ή What is Fullscreen Bypass?

The quiz website normally enforces fullscreen mode and pauses when you switch tabs or lose focus. This extension exploits a bug to bypass these restrictions. image

How it works:

  1. Extension clicks "Start Quiz" for you
  2. Immediately switches to a temporary blank tab or switches to an already opened tab
  3. Quiz starts in the background (website doesn't detect the switch)
  4. Returns to quiz tab after a few seconds
  5. Quiz is running without fullscreen restrictions!

Settings:

  • On (Recommended): Automatically bypasses fullscreen when Auto Start is enabled.
  • Off: Normal behavior - fullscreen enforcement remains active.

Benefits:

  • βœ… No fullscreen mode
  • βœ… Can switch tabs freely
  • βœ… Console stays accessible
  • βœ… Multi-monitor setup works perfectly
  • βœ… Can copy questions/answers easily

πŸ”Ή How to Manage API Keys?

  1. Click the extension icon in your browser toolbar.
  2. Scroll to the "API Keys" section.
  3. Enter or modify your API keys directly in the input fields.
  4. Click "Save" for each key you modify.
  5. Use the "Show/Hide" button to view your keys.
image

No need to edit localStorage anymore! Everything is managed through the UI.

πŸ”Ή What Do Different Page Background Colors Mean?

  • 🟑 Yellow: Fetching answers from the AI backend (loading).
image
  • 🟒 Green: Answers received successfully! Quiz solving in progress.
image
  • πŸ”΄ Red: Error occurred. An error box will appear with details and a retry button.
image

πŸ”Ή What If I Get an Error?

When an error occurs:

  1. A red error box appears in the bottom-right corner.
  2. The error message shows the exact problem (API key invalid, model not found, etc.).
  3. Click "Retry" to try again after fixing the issue.
  4. Or click the "Γ—" to dismiss the error.
image

Common errors:

  • "API Key not provided": Add your API key in the extension popup.
  • "Model not found": Select a valid model from the dropdown.
  • "AI failed to answer": API quota exceeded or invalid response.

πŸ”Ή Do I Need to Refresh After Navigating?

No! The extension automatically detects when you navigate to a quiz page using smart URL detection. Just click on quiz modules normally, and the extension activates instantly.

πŸ”Ή How to Prevent Fullscreen Mode?

Method 1: Use Fullscreen Bypass (Recommended)

  1. Enable Fullscreen Bypass in the extension popup (On by default).
  2. Navigate to any quiz page - the extension handles everything automatically!

Method 2: Manual Background Loading

  1. Open quiz module pages in background tabs (Ctrl+Click or Middle Mouse).
  2. Don't switch to them immediately.
  3. Wait 5-10 seconds for the quiz to load.
  4. Switch to the tab - quiz is running without fullscreen mode!

πŸ’‘ Troubleshooting & Tips

Extension Not Working?

  1. Check API Keys: Open the popup and ensure at least one API key is present (green status).
  2. Check Console Logs: Press F12 β†’ Console tab to see detailed error messages.
  3. Reload Extension: Go to Extensions Manager β†’ Click the refresh icon on the extension.
  4. Verify URL: Extension only works on app.kalvium.community/livebooks/*/lessons pages.

Quiz Not Auto-Starting?

  • Make sure Auto Start is enabled in the popup.
  • The Start Quiz button must be visible and loaded on the page.
  • Check console logs for "Start Quiz button detected" message.

Answers Are Wrong?

  • Try switching to a different AI model (GPT-5 Mini is recommended for quizzes).
  • Some models work better than others depending on question complexity.

Performance Tips

  • Gemini 2.5 Flash: Fastest and cheapest, great for simple quizzes.
  • GPT-5 Mini: Best accuracy for complex questions.
  • Auto Start Off: More control, better for reviewing questions first.

🎯 Features Summary

βœ… Automatic quiz solving with AI
βœ… Smart page detection (no refresh needed)
βœ… User-friendly API key management UI
βœ… Multiple AI model support (Gemini, GPT, Grok)
βœ… Detailed error messages with retry option
βœ… Auto Start mode for batch processing
βœ… Fullscreen bypass exploit (no restrictions!)
βœ… Visual feedback with color-coded backgrounds

Enjoy seamless quiz solving! πŸŽ‰

About

An extension to solve Kalvium Community quizes automatically using AI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors