Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AshikNesin/element-change

Open more actions menu

Repository files navigation

element-change

Detect when an element is changed in DOM

Install

$ npm install --save element-change

Usage

const elementChange = require('element-change');

elementChange('#feed',onChangeCallback)

API

elementChanged(selector)

selector

Type: string

CSS selector.

Waits until element is ready in the DOM using element-ready

onChangeCallback()

Type: Function

onChangeCallback() will be called with MutationRecord parameter.

Example

screenshot

Inspiration

License

MIT © Ashik Nesin

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.