You have to realize that you need to pick your battle. Being an ego centered person is fine, its who you are so being fake about it is just going to make it worst. However, you have to realize that proving yourself smarter than everyone is not worth the trouble because in the grand scheme of things it just isn't efficient. Eventually, you will not be able to feed your ego because you cut off all the sources (the people you gloriously told off). It's like money, unless you built a system or get a job to get a steady flow it will run out.
You can call people however you want, just use a different tone. Use playful body language while you correct people (playfulness, smiling, etc..) because it makes your judgement more acceptable for some reason (I guess the person is paying more attention to the body language instead of the words). Its funny to see someone laughing while you call that person a moron (I don't do this anymore because life experience has told me that I'm not always correct which was a big problem for me when I was younger. And I'm ok with that revelation lol).
Finally, I'll tell you not to be so judgemental, but you already know that is your problem. Now you just have to decide which is more important to you, looking intelligent or having people that can stand to be your friend.