How tomer8007/whatsapp-web-incognito works
WhatsApp Web Incognito is a browser extension that intercepts WhatsApp Web’s WebSocket traffic to suppress selected presence and receipt updates, while adding message recovery, device-origin indicators, status downloads, and controls for configuring these behaviors. The documented runtime path is frame interception, decryption when needed, binary decoding, stanza inspection, and blocking or altering selected traffic. The graph also shows settings and UI, plus the parsing and encryption layers. Some subsystem links are based on README statements; unsampled source connections are omitted.
Main entry points: interception.js Frame interception · node_handler.js Node handling · ws_hook.js WebSocket hook · multi_device.js Multi-device crypto
Components 23
Traffic interception
- WebSocket hook
core/ws_hook.js - Page injection
core_injection.js - Frame interception
core/interception.js
Protocol handling
- Node handling
core/node_handler.js - Multi-device crypto
core/multi_device.js - Binary reader
core/parsing/binary_reader.js - Binary writer
core/parsing/binary_writer.js - Node codec
core/parsing/node_reader_writer.js - Message schema
core/parsing/protobuf/WAProto.proto - Whisper protocol
core/parsing/protobuf/WhisperTextProtocol.proto - Legacy single-device
old/legacy_single_device.js - Legacy node reader
old/node_reader.js - Legacy node writer
old/node_writer.js - Compression utility
lib/pako.js
User features
- Message recovery UI
core/ui.js - Injected page UI
core/injected_ui.js - Status downloads
core/status_download.js
Settings and UI
- Preference service
background.js - Extension controls
core/ui.js - Dropdown UI
lib/drop.js - Extension storage
Other components
- WhatsApp user
- WhatsApp Web
Connections 22
- WhatsApp user → WhatsApp Web: uses
README.md - WhatsApp Web → WebSocket hook: exchanges frames
README.md - Page injection → WebSocket hook: installs early
core_injection.js - WebSocket hook → Frame interception: intercepts frames
README.md - Frame interception → Multi-device crypto: decrypts frames
README.md - Frame interception → Node codec: decodes frames
README.md - Frame interception → Node handling: checks stanzas
README.md - Node handling → WhatsApp Web: blocks updates
README.md - Node handling → WhatsApp Web: fakes failure
README.md - Preference service → Extension storage: reads and writes
background.js - Extension controls → Preference service: requests options
core/ui.js - Extension controls → Dropdown UI: creates menus
core/ui.js - Injected page UI → WhatsApp user: shows controls
- Message recovery UI → WhatsApp user: restores messages
README.md - Status downloads → WhatsApp user: downloads statuses
README.md - Node handling → WhatsApp user: marks device origin
README.md - Binary reader → Node codec: supports decoding
- Binary writer → Node codec: supports encoding
- Message schema → Multi-device crypto: describes messages
- Whisper protocol → Multi-device crypto: describes messages
- Legacy single-device → Legacy node reader: uses
- Legacy single-device → Legacy node writer: uses