Advanced Chrome extension that performs facial emotion detection using AI technology and keeps emotion logs during web browsing!
- 🎯 Real-time Emotion Detection: AI-powered face analysis with Face-api.js
- 📊 Emotion Logs: Emotion recording every 10 seconds
- 📈 Statistics: Daily emotion distribution and analysis
- 🌐 Target Websites: YouTube, Netflix, Instagram, Facebook, Twitter, TikTok
- 🔒 Privacy: No images recorded, only real-time analysis
- 📱 Modern Interface: Dashboard, logs and settings tabs
manifest.json- Extension configuration (Manifest V3)popup.html- Modern popup interfacepopup.js- Popup JavaScript controlleremotion-detector.js- AI emotion detection systembackground.js- Background service workerface-api.min.js- AI libraryicons/- Extension iconstest-debug.html- Debug interface
- 😊 Happy
- 😢 Sad
- 😠 Angry
- 😨 Fearful
- 🤢 Disgusted
- 😲 Surprised
- 😐 Neutral
- Open Chrome
- Go to
chrome://extensions/ - Turn on "Developer mode" switch in the top right
- Click "Load unpacked" button
- Select this project folder
- Extension will load automatically
- Visit one of the target websites (YouTube, Netflix, etc.)
- Click the extension icon in the toolbar
- Grant camera permission when prompted
- Turn on emotion detection toggle
- Look at the camera for emotion detection
- Face-api.js: Deep learning models for face detection
- SSD MobileNet: Main face detection model
- TinyFaceDetector: Fallback detection model
- Face Expression Recognition: 7-emotion classification
- Manifest V3: Latest Chrome extension standard
- Content Scripts: Inject AI detection into web pages
- Background Service Worker: Manage data and logs
- Camera API: Real-time video processing
- Chrome Storage: Local emotion log storage
activeTab: Access current websitestorage: Save emotion logscamera: Real-time emotion detectionhost permissions: Target website access
- Initialization: Extension loads AI models on target websites
- Camera Access: Requests permission for camera feed
- Face Detection: Analyzes face every 10 seconds
- Emotion Classification: AI determines dominant emotion
- Data Storage: Saves emotion with timestamp and website
- Statistics: Generates daily emotion analytics
Test the extension with debug mode:
- Open
test-debug.html?debugin your browser - Camera feed will be visible
- Real-time debug information
- Test camera permissions and AI models
- No Data Collection: All processing happens locally
- No Image Storage: Camera feed is analyzed in real-time only
- Local Storage: Emotion logs saved only on your device
- No External Servers: Complete offline operation
- Open Source: Full code transparency
The extension activates on these platforms:
- YouTube - Video watching emotions
- Netflix - Movie/series viewing emotions
- Instagram - Social media browsing emotions
- Facebook - Social interaction emotions
- Twitter - News/social feed emotions
- TikTok - Short video content emotions
View your emotion patterns:
- Today's Statistics: Real-time emotion counts
- Emotion Distribution: Visual charts and graphs
- Website Activity: Which sites trigger which emotions
- Time Analysis: Emotion patterns throughout the day
- Chrome Browser (latest version)
- Camera access
- Internet connection (for AI model loading)
chrome-extension/
├── manifest.json # Extension configuration
├── popup.html # Main interface
├── popup.js # Interface controller
├── emotion-detector.js # AI detection system
├── background.js # Service worker
├── content.js # Content script
├── face-api.min.js # AI library
├── icons/ # Extension icons
├── test-debug.html # Debug interface
└── README.md # This file
- v1.0.0: Initial release with basic emotion detection
- Fork the project
- Create feature branch (
git checkout -b feature/new-feature) - Commit changes (
git commit -am 'Add new feature') - Push to branch (
git push origin feature/new-feature) - Create Pull Request
This project is open source and available under the MIT License.
- Face-api.js - Amazing AI face detection library
- Chrome Extensions - Powerful browser extension platform
- TensorFlow.js - Machine learning in the browser
- Open Source Community - For inspiration and support
🎭 Start tracking your digital emotions today! 😊