mirror of
https://github.com/FranP-code/heart-save.git
synced 2025-10-13 00:13:54 +00:00
77c532238bba204b0184fc2506468ecc10309370
WhatsApp Heart Favorites
A Chrome extension that automatically stars messages when you react with a heart emoji on WhatsApp Web.
Description
WhatsApp Heart Favorites enhances your WhatsApp Web experience by automatically starring messages that you react to with a heart emoji (❤️). This makes it easier to keep track of important messages without having to manually star them.
Features
- Automatically stars messages when you add a heart reaction
- Works seamlessly with WhatsApp Web
- Lightweight and unobtrusive
Installation
From Chrome Web Store
- Visit the Chrome Web Store (link to be added)
- Chrome Web Store (TODO)
- Click "Add to Chrome"
- Confirm the installation
Manual Installation
- Download or clone this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top-right corner
- Click "Load unpacked" and select the downloaded folder
- The extension should now be installed and active
Usage
- Open WhatsApp Web (https://web.whatsapp.com/)
- React to any message with a heart emoji (❤️)
- The message will be automatically starred
- Remove the heart reaction to unstar the message
- The star will be removed from the message
How It Works
The extension injects a script into WhatsApp Web that:
- Accesses WhatsApp's internal JavaScript modules
- Adds a new callback for the heart reaction
- This new callback triggers the star message function
Permissions
This extension requires the following permissions:
activeTab: To interact with the WhatsApp Web pagescripting: To inject scripts into the page- Access to
https://web.whatsapp.com/*: To function on WhatsApp Web
Development
The extension consists of:
manifest.json: Extension configurationcontent-script.js: Detects when WhatsApp Web is loaded and injects the main scriptinjected.js: Contains the core functionality for detecting reactions and starring messages
Description
Languages
JavaScript
100%