You can use str_replace (or similar) to completely avoid template edits too, something like:
PHP Code:
$output = str_replace("</body>", $your_output . "</body>", $output);
// ($output is the standard variable for whatever page vB is compiling)
That would put your output before the </body> tag.
The problem with that is search replacing takes time so template edits can be preferable.