I wanted to do the same thing, but wasn't sure where/how to make that change in vBulletin. So I just added a plugin with priority 65000 on global_complete to make those sort of content distribution network changes. It works fine for vBulletin, but the issue I have is with photopost it does not make these changes (because it doesn't process these hooks).
Code:
$oz_process = str_replace('"http://ozscience.com/forums/clientscript/', '"http://cdn8.ozscience.net/clientscript/', $output);
$oz_process = str_replace('"clientscript/', '"http://cdn8.ozscience.net/clientscript/', $oz_process);
$oz_process = str_replace('"http://ozscience.com/forums/images/', '"http://cdn9.ozscience.net/images/', $oz_process);
$oz_process = str_replace('"images/', '"http://cdn9.ozscience.net/images/', $oz_process);
$output = str_replace('"/forums/images/', '"http://cdn9.ozscience.net/images/', $oz_process);