Monday 3 October 2016

Enable Flash Player for all sites in Mac OS Safari via the command-line / script

A little script that enables Adobe Flash Player for Safari on MacOS on all sites.  Useful for managed computers.

#!/bin/bash
defaults write com.apple.Safari ManagedPlugInPolicies ' "com.macromedia.Flash Player.plugin" =         {
            PlugInDisallowPromptBeforeUseDialog = 1;
            PlugInFirstVisitPolicy = PlugInPolicyAllowWithSecurityRestrictions;
            PlugInHostnamePolicies =             (
                                {
                    PlugInHostname = "www.adobe.com";
                    PlugInIsFreshlyExpired = 0;
                    PlugInPageURL = "http://www.adobe.com/uk/software/flash/about/";
                    PlugInPolicy = PlugInPolicyAllowWithSecurityRestrictions;
                    PlugInRunUnsandboxed = 1;
                }
            );
            PlugInRunUnsandboxedOnFirstVisit = 1;
        };
'
exit 0

No comments:

Post a Comment