Skip to main content

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​

  1. Challenge title -- from [data-testid="challenge-title"] or <h1>
  2. Question text -- scans 20+ selector patterns to find the challenge question
  3. Answer options -- extracts up to 4 multiple-choice options with smart deduplication
  4. Tab code panels -- clicks each tab in the code editor and captures the source code
  5. 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​

  1. Seeds the browser's localStorage with your session ID
  2. Navigates to the challenge URL and waits for networkidle2
  3. Locates the challenge-iframe inside the page
  4. Iterates through all MuiTab-root / [role="tab"] elements, clicking each and collecting code
  5. Finds solution buttons and clicks each to collect solution file segments
  6. Formats everything into a prompt-friendly markdown string
  7. Copies the result to your clipboard (macOS)