Mutation Summary is a JavaScript library that makes observing changes to the DOM fast, easy and safe. It's built on top of (and requires) a new browser API called DOM Mutation Observers.
بۇ قوليازمىنى بىۋاسىتە قاچىلاشقا بولمايدۇ. بۇ باشقا قوليازمىلارنىڭ ئىشلىتىشى ئۈچۈن تەمىنلەنگەن ئامبار بولۇپ، ئىشلىتىش ئۈچۈن مېتا كۆرسەتمىسىگە قىستۇرىدىغان كود: // @require https://update.greasyfork.org/scripts/12036/70722/Mutation%20Summary.js
Mutation Summary is a JavaScript library that makes observing changes to the DOM fast, easy and safe.
It's built on top of (and requires) a new browser API called DOM Mutation Observers.
Why do I need it?
Mutation Summary does five main things for you:
What is it useful for?
Lots of things, here are some examples:
What is this not useful for?
The intent here isn't to be all things to all use-cases. Mutation Summary is not meant to:
“div[foo] span.bar > p:first-child”? Unfortunately, efficiently computing that is much harder and currently outside the scope of this library.Note that both of the above use cases are possible given the data that the underlying Mutation Observers API provides -- we simply judged them to be outside the "80% use case" that we targeted with this particular library.
Where can Mutation Summary be used?
The Mutation Summary library depends on the presence of the Mutation Observer DOM API. Mutation Observers are available in
Mutation Observers is the work of the W3C WebApps working group. In the future it will be implemented in other browsers (we’ll keep the above list of supporting browsers as up-to-date as possible).
Author: Rafael Weinstein
Site: https://github.com/rafaelw/mutation-summary