Improve this script to make it work with sites like Youku.