Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

A minimalist Chrome extension that watches any parent DOM element, logs newly‑added children in real time, and lets you export data with one click.

Notifications You must be signed in to change notification settings

itx-jd/dom-watcher-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧩 DOM Watcher - Chrome Extension

A minimalistic and elegant Chrome extension that monitors DOM changes on any webpage. Designed specifically to track new <div> elements being added inside a specified parent container — like payouts-block — and record values in real time.

DOM Watcher Screenshot


📦 Features

✅ Start/Stop DOM monitoring
✅ Realtime logging with timestamps
✅ Timezone support (e.g. Karachi, London, UTC, etc.)
✅ Export recorded data as .csv
✅ Refresh, Clear, and Status display
✅ Material Design with responsive icons
✅ Snackbar-style error messages for invalid class names
✅ Vertically scrollable log panel
✅ Persistent logs until manually cleared


🛠 File Structure

extension/
│
├── manifest.json            # Chrome extension config
├── popup.html               # UI of the popup
├── popup.js                 # Controls popup behavior
├── background.js            # Initializes default storage values
├── content.js               # Injected script to monitor DOM
├── style.css                # Material theme styling
├── icons/                   # Multiple icon sizes (16, 48, 128)
└── README.md                # You're reading it!

⚙️ How to Use

  1. Load the Extension:

    • Go to chrome://extensions
    • Enable Developer mode
    • Click Load unpacked
    • Select the extension/ folder
  2. Set the Parent Class:

    • Example: payouts-block
  3. Click ▶ Start

    • Starts tracking new children added to that element
    • Each time a new value like 1.90x appears, it logs 1.90x with timestamp
  4. Available Controls:

    • ⏹ Stop tracking
    • 🔁 Refresh UI
    • 🗑 Clear logs
    • 📥 Export all logs as file

✨ Example Use Case

Monitoring gambling game UIs that append <div> elements like:

<div class="payouts-block">
  <div class="payout">1.90x</div>
</div>

This extension captures new .payout divs and logs 1.90x.


🖤 Credits

Created with love by Jawad

About

A minimalist Chrome extension that watches any parent DOM element, logs newly‑added children in real time, and lets you export data with one click.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors