An Americanism first recorded in 1865 in the writing of Bret Harte. Origin uncertain. Possibly a clipped and altered form of magnificent, or derived from snifty with loss of the initial s (perhaps from phrases like 'those snifty hats'). The word entered American slang as a general term of approval for things clever or stylish.