Manual:Hooks/OutputPageBeforeHTML

Warning
Use this hook at your own risk.
 * Not used for page previews (bug 7050)
 * Can cause infinite loops (see talk)
 * Other problems ?????

Details

 * $out: the OutputPage (object) to which wikitext is added
 * $text: the HTML text (string) that is being added