Enable Flash Player for all sites Safari
I was looking for a way to enable Flash Player for all websites using Safari, rather than being prompted for each website. Moreso, I wanted a way to do this using the defaults command. I found that something like the following seemed to work:
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;
};
'
It looks like it removed the plug-in settings for the other plug-ins I had installed, though. Any ideas on how to tweak this so that it changes the settings for Flash but leaves the rest in tact?
--
Chad Michael Eyer
MacBook Air (11-inch Mid 2012), macOS Sierra (10.12.5)


