Probably someone could update the script or replace it for you. That would be
work for them and you might not learn much. A big part of the this site is
people helping other people learn.
Learning to write code takes time and practice.
Learning to read, understand, and modify someone else's code takes still more
time and practice.
Learning to write code that is easy for other people to read, understand, and
modify takes still more time and practice.
Don't quit learning just because something isn't easy. A number of links to
suggested reading were posted earlier in this thread. Take a break from this
particular problem to learn and practice. Read
tutorials. Write small
scripts to try the things you read about. Come back to this problem later (say after a few days or a week) and it will appear less complicated.