今是昨非

今是昨非

日出江花红胜火,春来江水绿如蓝

Using NewBing in Safari

NewBing has the necessary permissions, but I want to use NewBing in Safari because I don't want to have three browsers open every day - Safari, Chrome, and Edge - as my computer's memory doesn't allow it...

First, let's talk about the steps:

  1. Install the Microsoft Bing for Safari plugin in Safari and log in with an account that has access to NewBing.
  2. Change Safari's UserAgent to Edge's UserAgent.
  3. Change the default search engine to Bing.

The first step is simple, just open the store, search for the plugin, and install it. After installation, open Bing and log in with an account that has access to NewBing.

The tricky part is the second step. Most online searches suggest going to Safari -> Develop -> User Agent -> Microsoft Edge, as shown in the image below:
Safari UserAgent Modification

However, this method only works for the current tab. If you open a new page, it will fail, and setting it individually for each new tab is not feasible. So, is there a way to permanently set Safari's UserAgent?

Of course, there is. The method is as follows, and once set, the UserAgent will remain the same for every new page you open:

Permanently set Safari's UserAgent

defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1518.78\""

If you want to revert back to Safari's original UserAgent, you can use the following method:

defaults delete com.apple.Safari CustomUserAgent

Finally, change the default search engine to Bing, and you can enjoy using NewBing in Safari.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.