I think what you want is the Page Created Event Handler. You can use that to set up code that will fire each time a page is created. Within the handler, you would do appropriate pre-testing to make sure the situation calls for the additional content you want on the page, then inject that content via code. There should be many examples of how to add new features to a page; for example, the default HTML instance that's added to new pages.