Prevent iTunes websites from opening the iTunes app using GlimmerBlocker

Filed under Mac, Miscallaneous, Scripts

A few minutes ago I clicked on an iTunes store link on a website and had to again completely lose it because of the iTunes app popping up without me asking it to. This is a common annoyance that people have found a bunch of different ways to combat, ranging from messing with the system's (or the browser's) mapping of URL protocol handlers to rewriting parts of web pages via a browser plugin (e.g. GreaseMonkey) or a localhost web proxy (e.g. GlimmerBlocker).

Note (Aug '10): Now that Safari 5 has support for extensions, installing the NoMoreiTunes extension is probably a better way to do this.

I read somewhere that Safari (or the OS? or iTunes?) sometimes decides to "fix" the mappings of iTunes URL protocol handlers, forcing you to "play cat and mouse" if you decide to prevent iTunes from automagically opening up by removing it as the itms: protocol handler, so I decided that it would be best to try and fix this problem by messing with the iTunes website source via GlimmerBlocker, which I already was using for ad blocking.

I couldn't find any straightforward directions on how to do this with GlimmerBlocker so I decided to post it here myself once I figured out how to do it. So this is how I prevented iTunes from automatically opening up whenever I open up a store link in my browser:

This seems to correctly prevent the iTunes app from opening up whenever a store website is opened, but it still allows for opening the viewed product in the stand-alone app via the "View in iTunes" link on the page.


??GlimmerBlocker??iTunes Store???????? | ????? April 24, 2010 at 12:58 PM

[…] Post in English via hasseg.org/. […]

fuelmono.net/ May 15, 2010 at 6:16 PM

This works great, thanks a lot :)

??GlimmerBlocker??iTunes Store???????? - ????? August 18, 2011 at 7:38 AM

[…] Post in English via hasseg.org/. […]