If you really want to do this, then it should already be possible.
The global $wp_scripts
is an instance of the WP_Scripts
class, which is an instance of the WP_Dependencies
class.
So in theory (not tested), you should be able to do something like this:
function alter_script_tags()
{
echo '<pre>';
print $GLOBALS['wp_scripts']->print_html;
echo '</pre>';
}
add_action( 'wp_enqueue_scripts', 'alter_script_tags', 999999 );
This is just a rough sketch, but you should get the idea.