Most people dislike vanity in others, whatever share they have of it themselves
 Benjamin Franklin, The Autobiography of Benjamin Franklin (1791). copy citation

Context

“(I may as well confess it, since my denial of it will be believed by nobody) , perhaps I shall a good deal gratify my own vanity. [4] Indeed, I scarce ever heard or saw the introductory words, "Without vanity I may say," etc., but some vain thing immediately followed. Most people dislike vanity in others, whatever share they have of it themselves; but I give it fair quarter wherever I meet with it, being persuaded that it is often productive of good to the possessor, and to others that are within his sphere of action; and therefore, in many cases, it would not be altogether absurd if a man were to thank God for his vanity among the other comforts of life.” source