Firefox 3.5 and above
(Works without installed Gnome libraries)- Type about:config into the Location Bar (address bar) and press Enter.
- Right-click -> New -> Boolean -> Name: network.protocol-handler.expose.foo -> Value -> false (Replace foo with the protocol you're specifying)
- Next time you click a link of protocol-type foo you will be asked which application to open it with.