$ show Max-Eee/NeoPass
NeoPass is a browser extension designed to assist students during online exams by bypassing restrictions (tab switching, pasting, screenshare) and providing AI-powered answer assistance. It employs a Manifest V3 architecture with a background service worker, content scripts injected into exam platforms, and a popup UI for configuration. Key features include automatic code typing, MCQ solving, a stealth-mode chatbot, and anti-detection measures to avoid identification by exam portals. The extension supports both a free mode (requiring user-configured API keys) and a Pro mode via a managed backend service.
The LLM identified 5 files worth highlighting for reuse:
Implements a mock interceptor that redirects extension resource requests to harmless mock resources, preventing exam portals from detecting the extension by blocking or altering requests to extension URLs. This pattern can be extracted for any extension needing to evade detection mechanisms that scan for extension resources.
A family of functions (showToast, showStealthToast, etc.) that create, update, and remove toast-style notifications via script injection into the active tab. It supports stealth mode (adjustable opacity), spinners, and custom messages. This UI pattern is decoupled from the rest of the extension logic and can be reused in any extension requiring non-intrusive user feedback.
Encapsulates the logic for configuring and querying different AI APIs (OpenAI, Anthropic, Google, DeepSeek, or a custom endpoint) behind a unified interface. It handles API key management, endpoint selection, and request formatting, making it easy to switch providers or add new ones. This component is highly reusable in any application that needs to interact with multiple language model services.
Loads a static JSON dataset of question-answer pairs and provides a function to find the best match for a given query using normalized Levenshtein distance. Includes text normalization (lowercase, removing punctuation) to improve matching accuracy. This pattern is reusable for any offline knowledge base or FAQ system requiring tolerant string matching.
Implements a session management system that uses alarms to periodically check for user activity (every 5 minutes) and automatically logs out the user after 12 hours of inactivity. It clears stored credentials and refreshes tabs to enforce the session limit. This pattern is reusable for any extension that requires secure, time-limited authentication sessions.