Vainglorious is an antique word for self promotion, boastfulness in one's self. It means to do things for glory and self promotion.
"Britney Spears shaved her head in a vainglorious attempt to restart her career."
"Jake injured himself in a vainglorious attempt to impress Valerie."