Etymology
Today it means: In a self-righteous manner. Full definition →
From self-righteous + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.