TRY THE NEW SAFARI

March 8 2021 by Jeff Johnson

In the past couple of days, news sites such as ZDNet and iMore have reported that macOS can display a notification advertising Safari when you first launch Microsoft Edge. It turns out that this "feature" actually appeared first in Mac OS X 10.10 Yosemite, as described in an old blog post by Daniel Aleksandersen, an engineer for the web browser Opera. The Safari advertisement can occur with any alternative web browser, such as Opera, not just with Microsoft Edge. Ironically, it can occur even with Apple's own Safari Technology Preview! I've discovered reliable steps to reproduce the advertisement, using the information from Aleksandersen's blog post.

  1. Set your default web browser to something other than Safari.

    See my blog post from a few days ago describing a bug in macOS Big Sur that can prevent you from changing your default web browser, and my new free app Default web browser that works around the bug.

  2. Launch the Terminal app in the Utilities subfolder of the Applications folder, and enter the following command.

    defaults delete com.apple.coreservices.uiagent

    (You can use defaults read com.apple.coreservices.uiagent at any time to see the current defaults.)

  3. Logout of your user account and login again.

  4. Launch a web browser other than Safari, and then quit that browser.

  5. defaults write com.apple.coreservices.uiagent CSUIRecommendSafariNextNotificationDate -date "2021-01-01 00:00:00 +0000"

  6. Logout of your user account and login again.

  7. Launch a web browser other than Safari.

And that's it! Enjoy your beautiful macOS advertising. But if you want to prevent the ad from ever popping up again, enter the following commands in Terminal, and then logout.

  1. defaults write com.apple.coreservices.uiagent CSUIHasSafariBeenLaunched -bool YES
  2. defaults write com.apple.coreservices.uiagent CSUILastOSVersionWhereSafariRecommendationWasMade -float 99.0
  3. defaults write com.apple.coreservices.uiagent CSUIRecommendSafariNextNotificationDate -date "2050-01-01 00:00:00 +0000"
Jeff Johnson (My apps, PayPal.Me)