Default Mode
The default mode collects the complete challenge context: title, question, answer options, code panels, and solution panels.
Usage
node src/index.js --url "..."
What it collects
- Challenge title -- from
[data-testid="challenge-title"]or<h1> - Question text -- scans 20+ selector patterns to find the challenge question
- Answer options -- extracts up to 4 multiple-choice options with smart deduplication
- Tab code panels -- clicks each tab in the code editor and captures the source code
- Solution panels -- clicks solution buttons and collects file segments for each solution variant
Output format
# Challenge Title
Question:
What is the vulnerability in this code?
Options:
1. SQL Injection
2. Cross-Site Scripting
3. Insecure Direct Object Reference
4. Missing Authentication
Solution Panels:
### Solution 1
#### app.js
\`\`\`
// code content here
\`\`\`
Code Panels:
### Tab Name
\`\`\`
// code content here
\`\`\`
How it works
- Seeds the browser's
localStoragewith your session ID - Navigates to the challenge URL and waits for
networkidle2 - Locates the
challenge-iframeinside the page - Iterates through all
MuiTab-root/[role="tab"]elements, clicking each and collecting code - Finds solution buttons and clicks each to collect solution file segments
- Formats everything into a prompt-friendly markdown string
- Copies the result to your clipboard (macOS)