Socket
Socket
Sign inDemoInstall

node-inserted

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-inserted

Detect DOM element insertion.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
6.74 kB
Created
Weekly downloads
 

Readme

Source

node-inserted

A module to detect DOM insertion. It fires a new event whenever a new element is inserted into the DOM that has the .inserted class. You can add a listener to the document to get all the insertions, or you can add a listener to the parent element. It uses the idea, published in this article.

browserify

npm install node-inserted
require('node-inserted')();

var handler = function () {
  console.log('insertion occured!');
};

document.addEventListener('inserted', handler, false); // fires on every insertion
parent.addEventListener('inserted', handler, false); // fires only when childs are inserted

plain

<script type="text/javascript" src="inserted.js"></script>

Keywords

FAQs

Last updated on 09 Aug 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc