how to simplify this script?

Printable View