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