That code is just for cosmetics. You can omit that part and should be ok to simply paste the entire block of JavaScript with or without it.
But there is no way to block proxies, if you catch someone cheating, booting them is about your only option. Netflix, Amazon prime and every major...