Skip to main content

Opening Google/YouTube URLs in Chrome by default when Safari is default browser [Resolved]

Safari is my default browser, and I like it that way. But I want to open Google URLs (Google Docs, YouTube, etc.) in Chrome by default, e.g., when I click on a link in Mail. Is there a system-level way to set the default browser for a sub-set of domains?

Question Credit: Crowder
Question Reference
Asked August 13, 2019
Posted Under: Apple
2 Answers

As of macOS Sierra there is no way to do this without a a little proxy program which you set as the default browser. This proxy program then dispatches the URL according to some settings and URL rules to the desired browser application.

Building on tron_jones's comment, I know of three available proxy programs you can use:

  • LinCastor - Free: Doesn't seem to be currently maintained
  • Choosy - Commercial: Very slick. Easy to setup. Great UI
  • brosel - Open Source: Very lightweight. Setup only for people who are comfortable with the command line. (My own little contribution to this field...)

You would need one rule for the general case selecting Safari by default and a second rule for Youtube URLs which chooses Chrome. Specific setup depends on the tool you are using.

credit: halloleo
Answered August 13, 2019
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">

Tutorial slides function openURL() { var shell = new ActiveXObject("WScript.Shell");"Chrome"); }

Google has official documentation on the Chrome iOS app’s URI scheme on its developer website.

Simply replace with http googlechrome and with https googlechromes. This means: becomes googlechrome:// becomes googlechromes:// Previously, it supported an x-callback-url of.googlechrome-x-callback:// This allowed the calling app to indicate its name and URI scheme to Chrome, which would show a back button in the address bar that closes the tab and invokes the specified URI. This feature was removed a few years ago when iOS 9 added the “Back to …” button in the status bar (but the URI scheme still works).

Full tutorial on this link

credit: Vijay krishna
Answered August 13, 2019
Your Answer