How loluwafemi/wa_extra works
This repository is a Chrome extension for monitoring WhatsApp Web groups, extracting member names and phone numbers, storing unique contacts locally, and exporting them. The main workflow runs from the popup toggle through content-script monitoring and extraction to browser storage; users can view status and download data. README documents per-group Excel export and live statistics; the background script also provides a CSV download fallback. No automatic UI-update or AI-model subsystem exists in the tree. Source excerpts are partial, so uncertain internal wiring is omitted.
Main entry points: content.js Content script · popup.js Popup controller · background.js Background worker · popup.html Popup dashboard
Components 16
Extension UI
- Popup dashboard
whatsapp-extractor/popup.html - Popup controller
whatsapp-extractor/popup.js - Background worker
whatsapp-extractor/background.js
Group Extraction
- Content script
whatsapp-extractor/content.js - Group detection
whatsapp-extractor/content.js - Member scanning
whatsapp-extractor/content.js - Contact parsing
whatsapp-extractor/content.js
Local Data
- Browser local storage
- Duplicate tracking
whatsapp-extractor/content.js - Stats and activity
whatsapp-extractor/popup.js
Contact Export
- Excel export
whatsapp-extractor/content.js - SheetJS library
- CSV fallback
whatsapp-extractor/background.js
Other components
- User
- WhatsApp Web
- Browser downloads
Connections 23
- User → Popup dashboard: uses
- Popup dashboard → Popup controller: renders
- Popup controller → Browser local storage: reads and writes
- Popup controller → Content script: sends commands
- Content script → Popup controller: sends status
- Content script → Browser local storage: reads and writes
- Content script → Group detection: monitors
- Group detection → WhatsApp Web: observes DOM
- Content script → Member scanning: opens and scans
- Member scanning → WhatsApp Web: reads member panel
- Member scanning → Contact parsing: provides rows
- Content script → Duplicate tracking: checks contacts
- Duplicate tracking → Browser local storage: updates records
- Popup controller → Stats and activity: updates display
- Browser local storage → Stats and activity: provides stats
- Content script → Excel export: handles download
- Excel export → Browser local storage: reads contacts
- Excel export → SheetJS library: creates workbook
- Excel export → Browser downloads: writes file
- Popup controller → Background worker: requests fallback
- Background worker → Browser local storage: reads contacts
- Background worker → CSV fallback: generates CSV
- CSV fallback → Browser downloads: downloads file