Quick Reminders

Need a refresher? Here's the core workflow and common commands at a glance.

The Core Workflow

1

Select

Right-click → Inspect (or Cmd+Shift+C)

2

Reference

Press Esc for Console drawer, type $0

3

Change

Modify with $0.classList.add('active')

Common Commands

// Reading state
$0.classList                // Classes
$0.dataset                  // Data attributes
getComputedStyle($0).color  // Computed CSS

// Changing state
$0.classList.add('active')
$0.classList.remove('active')
$0.classList.toggle('active')
$0.dataset.theme = 'dark'
$0.style.backgroundColor = 'coral'

Key Shortcuts (Firefox)

Action Mac Windows
Open DevTools Cmd+Option+I Ctrl+Shift+I
Console directly Cmd+Option+K Ctrl+Shift+K
Console drawer Esc (while in DevTools)
Element picker Cmd+Shift+C Ctrl+Shift+C

Stuck?