Indeed, but I just learned about the DOM mutation API[1], that can be used here. This also makes sense when additional content is loaded later via AJAX (was achieving that with setInterval).
1: https://developer.mozilla.org/en-US/docs/Web/API/MutationObs...