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