Restore old style macOS alerts

Léo Natan on Twitter:

Do you prefer the old style macOS alerts? There is a way to get them globally for AppKit in Big Sur and Monterey.

Open Terminal and paste:

defaults write -g NSAlertMetricsGatheringEnabled -bool false

If you want to restore it:

defaults delete -g NSAlertMetricsGatheringEnabled