A lightweight Chrome extension that automatically converts Telegram web links (t.me, telegram.me, telegram.dog) to deep links (tg:// protocol) for seamless desktop app integration.
- Universal Link Detection: Monitors all web pages for Telegram links using efficient DOM observation
- Real-time Conversion: Automatically transforms web links to deep links without page refresh
- Protocol Support: Handles usernames, phone numbers, contact tokens, background themes, and channel invites
- Performance Optimized: Debounced mutation processing and minimal DOM queries
- Zero Dependencies: Pure JavaScript implementation with no external libraries
- Privacy Focused: Runs locally with no data collection or external API calls
- Content Script injection with
document_starttiming for early DOM access - MutationObserver API for dynamic content monitoring
- Debounced Processing (16ms) for optimal performance on dynamic sites
- Memory Management with proper cleanup and observer disconnection
t.me/username→tg://resolve?domain=usernamet.me/+1234567890→tg://resolve?phone=1234567890t.me/contact/token→tg://contact?token=tokent.me/bg/slug→tg://bg?slug=slug- Query parameter preservation for
textandprofileparameters
- Clone the repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the extension directory