How to stop Chrome from auto-opening App Store? Recently when I visited itunes.apple.com page for some app, Chrome asked me if I would allow opening the product in App Store. I chose "Yes" and I made a stupid mistake of allowing it permanently:


  Remember my choice for links of type App Store.app


Now everytime I visit some iTunes page, App Store app automatically pops up and it's really annoying. Is there I way to turn this behaviour off?

I tried searching in Google Chrome settings, but without success  (chrome://settings/handlers should obviously list these protocols and programs, but my list is empty).
I have found the solution in this comment. The protocol handler in question is macappstores and it needs to be removed from Chrome's list of allowed protocols.

Unfortunately, it is not possible to solve it through UI, so manually editing of Chrome settings file is needed:


Ensure Chrome is closed.
Open a Finder window and use the menu option Go → Go to Folder…
In the dialog that pops up paste in the path ~/Library/Application Support/Google/Chrome/ and click the Go button.
Now assuming you don't use profiles in Chrome you want to look for a folder called Default.


If you use profiles you will be looking for one probably titled Profile X where X is a number (if there are several of them, you must manually identify yours or perform steps below in each).
If you are logged in to Chrome with your Google account, your folder will be probably called Default, too (this was at least my experience).

In that folder you're looking for a file titled Preferences.
Open it in your preferred text editor (TextEdit is enough).
Search for the following text: "macappstores":false. The surrounding text should look similar to this (without newlines and indentation; I have added them just to prettify the text):



"protocol_handler": {
  "excluded_schemes": {
    …
    "javascript":true,
    "macappstores":false,
    "view-source":true,
    …
  }
}

Delete text "macappstores":false, (note to also delete one comma!) and save file.
Done. Next time you visit itunes.apple.com page with Chrome, you will be asked for permission to open App Store once again.