A Chrome extension that tracks specified content on a webpage in real-time and sends a browser notification when the content appears. The extension also allows the user to focus on the relevant tab by clicking the notification. This extension is ideal for monitoring dynamic web pages where content updates frequently.
- Real-time Content Tracking: Monitor specific text on a webpage.
- Notifications: Receive a browser notification when the tracked content appears.
- Tab Focus: Automatically switch to the tab that triggered the notification when the notification is clicked.
- Sound Alerts: Play an audio alert with the notification.
- Customizable Tracking: Users can input their own text to track.
- Search for 'Content Tracker' or open this chrome web store link
- Clone the repository:
git clone https://github.com/aakashdinkarh/content-tracker.git
- Go to Chrome Extensions:
- Open Chrome and navigate to
chrome://extensions/
. - Enable Developer mode (toggle in the top-right corner).
- Click Load unpacked and select the folder where you cloned the repository.
- Open Chrome and navigate to
-
Download the ZIP file:
- Go to the repository page.
- Click on the Code button and select Download ZIP.
-
Extract the ZIP:
- Extract the downloaded ZIP file to a directory on your computer.
-
Go to Chrome Extensions:
- Open Chrome and navigate to
chrome://extensions/
. - Enable Developer mode (toggle in the top-right corner).
- Click Load unpacked and select the folder where you extracted the ZIP file.
- Open Chrome and navigate to
- Click on the extension icon in your browser.
- Enter the content you want to track in the input field and click Start Tracking.
-
Tracker Stops on Refresh:
- Tracking stops if you refresh the page. Restart it to continue.
-
One-Time Tracking:
- Tracks once per activation. Stops after detecting the content.
-
Independent Tracking:
- Track separately on each page. Each page’s tracker works independently.
-
Chrome Notification:
- Ensure that Chrome notifications are enabled on your device for this to work.
-
Page-Specific:
- Only tracks the current page. Other pages are not affected.
- Open a webpage where you'd like to monitor content.
- Enter the text you'd like to track in the extension popup.
- The extension will continuously observe the webpage, and when the specified content appears:
- You will receive a browser notification.
- Clicking the notification will bring focus to the corresponding tab.
- A sound alert will also be played (if enabled).
When user opens the popup again after adding the text to track, without refreshing and the content has not appeared yet
The extension requests the following permissions:
- Scripting: To start a Mutation Observer on client content.
- Notifications: To display notifications when tracked content appears.
- The extension uses the MutationObserver API to monitor changes on the webpage.
- When the specified content is found, a browser notification is triggered, and the observer is automatically disconnected.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature
- Commit your changes:
git commit -m "Add your feature"
- Push to the branch:
git push origin feature/your-feature
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
You can adjust the repo URL and any other specifics as needed. This README includes installation, usage, and contributing instructions, making it clear for others to use or contribute to the project.