defaults write com.apple.dock no-glass -boolean YES; killall Dock
In its infinite wisdom, Apple removed that hidden preference in 10.9 (though positioning the Dock on the left or right still forces it to 2D). Many, many thanks to Wolfgang Baird for crafting cDock to correct this egregious eyeball assault.
/mac | May 06, 2014