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