What do I do if I get disrepute for doing something that others don’t like, even though I am convinced that it is right?

When you truly feel that something is right, you should go ahead with it and not worry about the repute or disrepute that would follow.
In general, the ways of the world and the conscience do not go along very well. One should decide which one should be given preference. If conscience is to be given preference, then one should not care about the society and worry about anything else. If one considers society to be more important, then he has to go along with it.