Skip to content

Instantly share code, notes, and snippets.

@macmule
Created November 26, 2021 22:48
Show Gist options
  • Save macmule/03b2e7fe19d0773736a4efd10e74479e to your computer and use it in GitHub Desktop.
Save macmule/03b2e7fe19d0773736a4efd10e74479e to your computer and use it in GitHub Desktop.
#!/usr/bin/python
"""
License: https://macmule.com/license/
"""
import CoreFoundation
ManagedPlugInPolicies = {
# Always Allow Sharepoint plugin
"com.microsoft.sharepoint.browserplugin": {
"PlugInFirstVisitPolicy": "PlugInPolicyAllowNoSecurityRestrictions",
}}
CoreFoundation.CFPreferencesSetAppValue("ManagedPlugInPolicies", ManagedPlugInPolicies, "com.apple.Safari")
CoreFoundation.CFPreferencesAppSynchronize("com.apple.Safari")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment