How do I monitor the DOM for changes?

Solution 1:

See "MutationEvent" elements in here: https://developer.mozilla.org/en/DOM/DOM_event_reference but those are deprecated.

jQuery now features a way to attach events to existing AND future elements corresponding to a selector: http://docs.jquery.com/Events/live#typefn

It may be a trick you could use for lack of proper DOM Node modification info.

Solution 2:

See the mutation-summary library. It's built on top of a new browser API called DOM Mutation Observers.