Is there a way to include some external script to some or all pages in a wordpress site?

You’ll want to write a plugin or add to your theme’s functions.php file a function to filter the_content.

There’s already a good answer to this problem at WordPress hooks/filters insert before content or after title.