← Back to Skills Marketplace
raghulpasupathi

Dom Observer Pro

by raghulpasupathi · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
543
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install dom-observer-pro
Description
Real-time DOM monitoring tool using MutationObserver and IntersectionObserver to detect and extract dynamic web content efficiently with minimal performance...
README (SKILL.md)

DOM Observer Pro

Metadata

  • ID: dom-observer-pro
  • Version: 1.0.0
  • Category: utility
  • Priority: Medium
  • Installation: ClawHub
  • Package: @raghulpasupathi/dom-observer-pro

Description

Efficient DOM monitoring system for real-time content detection in web browsers. Uses MutationObserver, IntersectionObserver, and intelligent debouncing to detect AI-generated content as it appears on web pages with minimal performance impact.

Installation

Via ClawHub

https://clawhub.ai/raghulpasupathi/dom-observer-pro

Via npm

npm install @raghulpasupathi/dom-observer-pro

Features

  • Real-time Monitoring: Detect content changes instantly
  • Mutation Observation: Track DOM modifications efficiently
  • Intersection Detection: Monitor when elements enter viewport
  • Intelligent Debouncing: Prevent performance degradation from rapid changes
  • Selector Targeting: Watch specific elements or patterns
  • Content Extraction: Automatically extract text/images from new elements
  • Shadow DOM Support: Monitor elements within shadow roots
  • Performance Optimized: Batched processing and throttling
  • Browser Extension Ready: Designed for extension environments
  • Configurable Filters: Ignore irrelevant changes

Configuration

{
  "enabled": true,
  "settings": {
    "observeMode": "mutation",
    "targetSelectors": [
      "article",
      "p",
      "div.content",
      "span.text",
      ".comment",
      ".post"
    ],
    "ignoreSelectors": [
      "script",
      "style",
      "noscript",
      ".ads",
      ".navigation"
    ],
    "mutation": {
      "enabled": true,
      "childList": true,
      "subtree": true,
      "characterData": true
    },
    "intersection": {
      "enabled": true,
      "threshold": 0.5,
      "rootMargin": "50px"
    },
    "performance": {
      "debounceDelay": 300,
      "throttleDelay": 100,
      "batchSize": 10,
      "maxQueueSize": 100
    },
    "extraction": {
      "minTextLength": 50,
      "maxTextLength": 10000,
      "extractImages": true,
      "extractLinks": true
    }
  }
}

API Examples

See dom-observer-pro-examples.js for complete usage examples.

Dependencies

  • mutation-observer: Built-in browser API
  • intersection-observer: Built-in browser API
  • debounce: ^2.0.0
  • lodash.throttle: ^4.1.1

Performance

  • CPU Usage: \x3C1% idle, 2-5% during active monitoring
  • Memory: 10-20MB for typical web pages
  • Latency: \x3C10ms detection, 100-500ms with debouncing
  • Throughput: Handles 1000+ DOM changes/second
  • Browser Compatibility: Chrome 51+, Firefox 14+, Safari 10+

Use Cases

  • Browser extensions for AI detection
  • Social media content monitoring
  • News site article tracking
  • Chat application message detection
  • Dynamic content tracking
  • Content moderation systems
  • Data collection from SPAs
  • User behavior tracking

Best Practices

  1. Use specific targetSelectors to reduce noise
  2. Always define ignoreSelectors for ads, navigation, etc.
  3. Set appropriate debounceDelay to balance speed vs performance
  4. Use IntersectionObserver for content in long pages
  5. Implement batch processing for high-frequency changes
  6. Call stop() when observer is no longer needed
  7. Use WeakSet to track processed elements
  8. Monitor performance metrics regularly
  9. Handle errors gracefully to prevent observer failure
  10. Test across different websites and frameworks
Usage Guidance
This SKILL.md describes a plausible DOM-observer library but includes no code in the skill package, and it directs you to install an external npm/ClawHub package. Before installing or using it: 1) Inspect the npm package source (or the ClawHub package) — review all JS files for network calls, telemetry, and unexpected privileges. 2) Verify the package publisher and README on the registry; prefer well-known authors or signed releases. 3) Confirm where extracted content would be stored/sent — avoid using it on pages with private data until you understand data flows. 4) Ask the publisher for the missing example files or a homepage/source repo; the SKILL.md references ./examples/dom-observer-pro-examples.js which is not included. 5) If you must try it, run in a sandboxed environment or with network blocked to observe behavior first. If you want, provide the actual npm package URL or package archive and I can re-evaluate the code for suspicious patterns.
Capability Analysis
Type: OpenClaw Skill Name: dom-observer-pro Version: 1.0.0 The skill bundle is classified as suspicious due to its 'Content Extraction' feature, which allows for the extraction of text, images, and links from web page elements as described in SKILL.md. While this capability is presented as necessary for the stated purpose of 'detecting AI-generated content,' it represents a powerful and potentially privacy-impacting function that could be repurposed for data exfiltration or unauthorized data collection if the underlying code or agent instructions were malicious. The documentation itself does not contain explicit malicious instructions or prompt injection attempts, but the inherent risk of this capability warrants a 'suspicious' classification.
Capability Assessment
Purpose & Capability
The name, description, and declared browser APIs (MutationObserver, IntersectionObserver) and small helper deps (debounce, lodash.throttle) align with a DOM-monitoring library. The declared features and selectors are coherent for the stated use cases (extensions, SPA scraping, moderation). However, the SKILL.md mentions detecting "AI-generated content" and user behavior tracking — capabilities that imply sensitive data collection and warrant privacy consideration even though no extra credentials are requested.
Instruction Scope
SKILL.md contains only high-level usage/configuration instructions and suggests installing the npm/ClawHub package. It does not instruct reading local env vars or system files, but it references an examples file (./examples/dom-observer-pro-examples.js) that is not present in the skill manifest — an inconsistency. The doc is vague about what happens to extracted content (storage/transmission), which is important because the library's job is to extract page text/images and could be used to collect sensitive data.
Install Mechanism
There is no install spec in the manifest — the skill is instruction-only. The README encourages installing @raghulpasupathi/dom-observer-pro via npm or ClawHub. Installing from npm (or an unknown ClawHub URL) means pulling remote code onto the host; this is a moderate-risk operation because the package is not included for review here. No downloads or URLs in the manifest are outright malicious, but the recommended install sources should be inspected (package contents, publisher, integrity signatures) before use.
Credentials
The skill requests no environment variables, credentials, or config paths in its manifest — this is proportionate to a client-side DOM library. That said, the library's function (content extraction and optional user-behavior tracking) can process sensitive page data; absence of credentials reduces risk of automatic exfiltration to a declared remote service, but the package could still include network code or require integration that sends data elsewhere. The SKILL.md does not document any network endpoints.
Persistence & Privilege
The skill does not request elevated platform privileges in the manifest (always:false, user-invocable:true) and does not attempt to modify other skills or system-wide settings. If used inside a browser extension, the extension context—not the skill manifest—determines runtime privileges; that environment can be powerful, so review extension permissions separately.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dom-observer-pro
  3. After installation, invoke the skill by name or use /dom-observer-pro
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of DOM Observer Pro, a high-performance DOM monitoring utility for web browsers. - Real-time detection of dynamic content using MutationObserver and IntersectionObserver - Intelligent debouncing, batching, and throttling for optimized performance - Selector-based targeting and ignoring for precise monitoring - Supports extraction of text, images, and links from new elements - Shadow DOM compatibility and browser extension readiness - Highly configurable with JSON-based settings
Metadata
Slug dom-observer-pro
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Dom Observer Pro?

Real-time DOM monitoring tool using MutationObserver and IntersectionObserver to detect and extract dynamic web content efficiently with minimal performance... It is an AI Agent Skill for Claude Code / OpenClaw, with 543 downloads so far.

How do I install Dom Observer Pro?

Run "/install dom-observer-pro" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Dom Observer Pro free?

Yes, Dom Observer Pro is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Dom Observer Pro support?

Dom Observer Pro is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Dom Observer Pro?

It is built and maintained by raghulpasupathi (@raghulpasupathi); the current version is v1.0.0.

💬 Comments