A Chrome extension that monitors pages under a given origin and alerts you whenever specified keywords appear on those pages. It continuously watches for DOM changes and scans the page each time the DOM is updated.
- 🔍 You specify one or multiple search terms and a target origin (e.g.
https://example.com). - 🕵️♂️ The extension watches all pages under that origin in real-time.
- 🔔 When the specified term(s) appear anywhere in the DOM, you immediately get notified.
- 🔄 It listens for any DOM mutations on the page (e.g. new elements, attribute changes) and re-scans the content.
- ✅ Extremely useful for tracking dynamically loading content or live updates.
- In dashboard, user sets:
- A keyword or list of keywords to watch for.
- A target origin (like
https://example.com).
content.jsruns on every page under that origin.- It installs a MutationObserver (modern, high-performance API) to detect any changes in the DOM (added/removed nodes, text/attribute changes)
- Upon every mutation, the current page is scanned in search of the specified term(s).
- If a match is found, you will be notified
- Clone the repository: git clone https://github.com/alimehridev/DOM‑Watcher.git
- Open Chrome and go to
chrome://extensions/. - Enable Developer mode in the top-right corner.
- Click Load unpacked and select the project folder.
- Dashboard UI allows adding keywords and origin targets.
- Options persist through
chrome.storage.localorlocalStorage. - Notifications appear as a number under the extension icon
- The extension runs in real-time on every DOM update for pages under the configured origin.
- To finding reflections for XSS.
- Tracking when live content updates (e.g. comments, chat).
- Monitoring dynamically changing pages for certain keywords.
- Add support for regex in Origins and reflection patterns.
- When a reflection pattern is removed, its associated logs should also be deleted.
- When an origin is removed, its reflection patterns and logs must also be removed.
- Display the number of reflections for each origin in the dashboard.
- Add timestamps to reflection logs.
- Implement search functionality within reflection logs.
- Make reflection logs sortable (e.g. by date, keyword, etc.).
- Show a confirmation popup before deleting items.
- Validate the origin format when a user attempts to add a new one.
- Ali Mehri – @alimehridev
This project is licensed under the MIT License. See the LICENSE file for details.