-
Open Chrome and navigate to:
chrome://extensions/ -
Enable Developer Mode:
- Click the toggle in the top-right corner that says "Developer mode"
-
Load Unpacked Extension:
- Click "Load unpacked" button
- Navigate to and select your extension folder:
C:\Users\harsh\Downloads\attention-trainer-extension - Click "Select Folder"
-
Verify Extension is Loaded:
- You should see "Attention Trainer" in the extensions list
- Make sure the toggle switch is ON (blue)
- Note the extension ID (looks like:
abcdefghijklmnopqrstuvwxyz123456)
-
Open the test page:
- Navigate to:
file:///C:/Users/harsh/Downloads/attention-trainer-extension/test-page.html - OR drag and drop the
test-page.htmlfile into Chrome
- Navigate to:
-
Open Developer Console:
- Press
F12or right-click → Inspect → Console tab
- Press
-
Look for these console messages:
🧪 Attention Trainer test page loaded 📋 Open browser dev tools to see extension debug output ⏱️ Extension should activate after 15 seconds of being on page -
Check extension status:
- The test page should show "Extension is active!" after 1-2 seconds
- If it shows "Extension not detected", try refreshing the page
- Check that all required files exist in the extension folder
- Make sure
manifest.jsonis in the root directory - Look for any errors in the Chrome extensions page
- Refresh the test page (Ctrl+R)
- Check browser console for any error messages
- Make sure you're not in incognito mode (unless extension is enabled for incognito)
- Wait at least 15 seconds on the page
- Scroll occasionally to simulate activity
- Check that page has focus (click on it)
- Look for console messages starting with "🔍 Extension Status"
- 0-1 seconds: Extension should be detected by test page
- 15 seconds: Stage 1 - brightness dimming should start
- 30 seconds: Stage 2 - blur effect should apply
- 1 minute: Stage 3 - intervention modal should appear
- 1+ minutes: Stage 4 - final warnings/reminders
If you see any errors or unexpected behavior, check the browser console for detailed error messages!