Etymology
Today it means: An intensive form of what. Full definition →
Shortened from earlier what in the hell.
Etymology from Wiktionary, CC BY-SA 4.0.