I didn't verify if it works, but I can tell you that that's what it's supposed to do. I can tell you the code isn't malicious, if that's what you were thinking. I'd suggest you just try it out.
PS: The code also adds a "/baf" slash command to show arena unit frames out of arena, it seems.