Yer right with AUR packages it is always wise to do some research.
That bash script is the one I posted about before and is super neat and safe and simple. Easy to check the script out and very much KISS. 😋
I definitely would advise against adding pacman hooks from AUR packages, especially ones that are not popular (very low votes). The highest one only has 9 votes and most have 1 vote. It doesnt happen much but there have been some malicious packages in the AUR before. Remember these are user packages and are not from archlinux.