Skip to main content
Question

How do I enable Safari extension?

  • Aug 1, 2024 10:52 AM UTC
  • 4 replies
  • 761 views

Forum|alt.badge.img+3

Hi,

I've installed the Ripple Tool extension on several devices, but I'm having trouble getting it to turn on automatically. Whenever a user logs in and opens Safari, they get a pop-up asking if they want to enable the "Ripple Tool" extension.

I’ve tried using a script to automate this, but it keeps failing because it can’t find the com.apple.Safari.Extensions.plist file in preferences. The Ripple Tool was downloaded and installed from the Apple Store.

I also tried using a configuration profile to enable the extension, but that approach didn’t work either.

 

#!/bin/bash

# Define the extension's bundle ID
EXTENSION_BUNDLE_ID="com.ripple.tool"

# Safari’s extension preferences file
PREFERENCES_FILE="/Users/$USER/Library/Preferences/com.apple.Safari.extensions.plist"

# Check if the plist file exists
if [ -f "$PREFERENCES_FILE" ]; then
# Add the extension to the plist (this approach might vary depending on Safari version)
/usr/bin/defaults write "$PREFERENCES_FILE" "ExtensionsInstalled" -array-add "$EXTENSION_BUNDLE_ID"
/usr/bin/defaults write "$PREFERENCES_FILE" "ExtensionsEnabled" -array-add "$EXTENSION_BUNDLE_ID"

echo "Ripple Tool extension enabled."
else
echo "Preferences file not found. Ensure Safari is installed and the extension is available."
fi

4 replies

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • Aug 1, 2024 12:34 PM UTC

You can't. A few years ago (with Catalin I think) apple changed how Safari Extension work. There is no way to programmatically enable or to prevent a user from disabling a Safari Extension. It goes as far with macOS 14 that a user can say what sites an Extension can be enabled for. 


czarmark
Forum|alt.badge.img+6
  • Contributor
  • Aug 1, 2024 7:42 PM UTC

I was happy to learn that Apple's WWDC 2024 included an announcement that MDM management for Safari extensions is coming in macOS 15 Sequoia. See the 11-minute mark at https://developer.apple.com/videos/play/wwdc2024/10143/


garybidwell
Forum|alt.badge.img+17
  • Jamf Heroes
  • Oct 17, 2024 12:41 PM UTC

Apple have now released the DDM configuration for managing Safari Extensions in macOS 15.1 onwards, but as of Jamf Pro 11.10 there still no GUI avalible for it

https://github.com/apple/device-management/blob/seed_iOS-18-1_macOS-15-1/declarative/declarations/configurations/safari.extensions.settings.yaml


Forum|alt.badge.img+8
  • New Contributor
  • Nov 13, 2024 3:27 PM UTC