Perform this command in Terminal to disable the confirmation:
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
Or this one to enable it back:
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true
Then finish it by using
killall Finder
After Finder restarts, the confirmation is gone (or back, in case you used the second command).
