I’ve tested this code with a bunch of stuff this morning – Safari on mac, safari on iOS, Chrome on mac & windows, IE on windows, Edge on windows, firefox on mac and windows, opera on windows, chrome on android (and I’ve tested in incognito mode on anything I could). I have not tested this on some of the more exotic browsers (dolphin, chromium, etc) – but it seems to work. YMMV
This must be above the wp_head call. This assumes you have turned off the JS loading in the wp-config.php file.
For Safari it will leave AJAX off, for everything else it will turn it on.
<?php if (!(strpos($_SERVER['HTTP_USER_AGENT'], 'Safari') && !strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome'))) {
if (function_exists( 'wpcf7_enqueue_scripts')) {
wpcf7_enqueue_scripts(); }}
?>