I was thinking there was no DOM listener so I implemented my own 'heavy' listener:
function CvHelper(stackApi) {
  var that = this;
  // check if room is finished loading
  this.init = function() {
    if ($('#loading').length) {
      setTimeout(that.init, 1000);
    } else {
      console.log('Chatroom finished loading');
      that.postListener();
    }
  }
}
(function() {
  var stackApi = new StackApi();
  var cvHelper = new CvHelper(stackApi);
  cvHelper.init();
})();
I think this just sucks. So I did a search on here on SO and this question popped up. However the last comment on the accepted question states that it is deprecated.
$("#someDiv").bind("DOMSubtreeModified", function() {
  alert("tree changed");
});
w3.org/TR/DOM-Level-3-Events/#event-type-DOMSubtreeModified says this event is deprecated, what would we use instead?
Is there a substition for it?
P.S. It only has to work on Chrome, because it is an Chrome extension.
 
     
     
     
    