Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

To disable safari notification on browser load

  1. Open Terminal.app
  2. Type the following:
    defaults write com.apple.coreservices.uiagent CSUIHasSafariBeenLaunched -bool YES
    defaults write com.apple.coreservices.uiagent CSUIRecommendSafariNextNotificationDate -date 2050-01-01T00:00:00Z
    defaults write com.apple.coreservices.uiagent CSUILastOSVersionWhereSafariRecommendationWasMade -float 99.99
    
  3. Immediately reboot.

To disable safari prompting to set itself as the default brwoser on exit

  1. Open Terminal.app
  2. Type the following:
defaults write com.apple.Safari DefaultBrowserDateOfLastPrompt -date '2050-01-01T00:00:00Z'
defaults write com.apple.Safari DefaultBrowserPromptingState -int 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment