I make it a point to avoid judging people, as long as they aren't harming others or doing something illegal.
There are plenty of people who get under my skin and sometimes I want to bop them on the head or something, but I never act on that. I want to give people the benefit of the doubt. I want to remember that I'm not always right and I wasn't always as smart as I am now. I want to give people the freedom they need to just be themselves. If I did judge or acted out on my frustrations, that would not make me a better person nor would it make me a good friend.
Someone once said that if you can't befriend the people you despise the most, you shouldn't be making friends at all. That saying is a HUGE exaggeration, but there is some truth to it. You will attract more bees with honey that with spite, and you might be surprised how many trolls out there really just need a friend.