Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blacklist DOM elements with Mutation Observers

I would like to use Mutation Observers in Chrome to monitor DOM changes in the entire document. However, I would like to blacklist specific elements with certain id's. Is there a way to do this?

like image 624
user730569 Avatar asked Oct 07 '22 12:10

user730569


1 Answers

Use mutation-summary library found here: http://code.google.com/p/mutation-summary/ . The element query summarizes the changes to the presence and location of elements matching the given selector string. found here: http://code.google.com/p/mutation-summary/wiki/APIReference#The_element_Query

like image 138
ama2 Avatar answered Oct 13 '22 12:10

ama2