Skip to content

A Chrome extension that tracks specified content on a webpage in real-time and sends notifications when it appears. Clicking the notification refocuses the relevant tab.

License

Notifications You must be signed in to change notification settings

aakashdinkarh/content-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content Tracker [Chrome Extension]

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.

Features

  • 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.

Installation

Method 1: From Chrome Web Store

  1. Search for 'Content Tracker' or open this chrome web store link

Method 2: Clone the Repository

  1. Clone the repository:
    git clone https://github.com/aakashdinkarh/content-tracker.git
  2. Go to Chrome Extensions:
    1. Open Chrome and navigate to chrome://extensions/.
    2. Enable Developer mode (toggle in the top-right corner).
    3. Click Load unpacked and select the folder where you cloned the repository.

Method 3: Install from ZIP File

  1. Download the ZIP file:

    1. Go to the repository page.
    2. Click on the Code button and select Download ZIP.
  2. Extract the ZIP:

    • Extract the downloaded ZIP file to a directory on your computer.
  3. Go to Chrome Extensions:

    1. Open Chrome and navigate to chrome://extensions/.
    2. Enable Developer mode (toggle in the top-right corner).
    3. Click Load unpacked and select the folder where you extracted the ZIP file.

Start Tracking:

  • Click on the extension icon in your browser.
  • Enter the content you want to track in the input field and click Start Tracking.

Important Behaviors

  1. Tracker Stops on Refresh:

    • Tracking stops if you refresh the page. Restart it to continue.
  2. One-Time Tracking:

    • Tracks once per activation. Stops after detecting the content.
  3. Independent Tracking:

    • Track separately on each page. Each page’s tracker works independently.
  4. Chrome Notification:

    • Ensure that Chrome notifications are enabled on your device for this to work.
  5. Page-Specific:

    • Only tracks the current page. Other pages are not affected.

Usage

  1. Open a webpage where you'd like to monitor content.
  2. Enter the text you'd like to track in the extension popup.
  3. 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).

Screenshots

UI For Extension

Screenshot 2024-09-17 at 5 06 07 PM

When text added to track

Screenshot 2024-09-17 at 5 07 03 PM

When user opens the popup again after adding the text to track, without refreshing and the content has not appeared yet

Screenshot 2024-09-17 at 5 10 36 PM

Fallback/Not Supported Page -

Screenshot 2024-09-14 at 10 15 46 PM

Notification From Chrome -

Screenshot 2024-09-17 at 5 12 35 PM

Permissions

The extension requests the following permissions:

  • Scripting: To start a Mutation Observer on client content.
  • Notifications: To display notifications when tracked content appears.

How It Works

  • 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.

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/your-feature
  3. Commit your changes:
    git commit -m "Add your feature"
  4. Push to the branch:
    git push origin feature/your-feature
  5. Open a pull request.

License

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.

About

A Chrome extension that tracks specified content on a webpage in real-time and sends notifications when it appears. Clicking the notification refocuses the relevant tab.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published