Auto hide black bars in 21:9 monitors with the same video format

Instead of having to switch the zoom mode to crop every time i watch a 21:9 movie on my computer I would love for it to automatically detect the format and hide the black bars. Or at least for there to be an option to enable that. Basically exactly what the ultrawidify chrome extension does in google chrome.