/* Author : Manikandan K */
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
var observer = new MutationObserver(function(mutations, observer) {
// fired when a mutation occurs
// console.log(mutations, observer);
markHighlight(); // write your condition here
});
/*
* define what element should be observed by the observer
* and what types of mutations trigger the callback
*/
observer.observe(document, {
subtree: true,
attributes: true
});