Remove every Javascript except own theme scripts In my current Drupal 6 installation, a lot of Javascript scripts are being loaded (core scripts, jQuery, modules, etc).

I only have one script in my theme that I need, so I want to only include that file and get rid of everything else.

What's the best way to accomplish this?
In your template.php you can override the generation of $vars['scripts'] to be just your file.

However, I suspect that this is a really bad idea and may have a lot of consequences.