Thursday, September 07, 2006

Context menu for IE links to 'Open In Firefox'



Obviously most of our development has to be done with an eye to how it works in Internet Explorer, but I get tired of pasting links into FireFox, my primary browser. This is especially annoying when I need to open links in Gmail or Google Reader from IE to FireFox.

So using information from the kunal.kundaje.net site , I created a new context menu entry for 'Open In Firefox'.

I created an HTML file in c:\windows\ie_open_in_firefox.html with this content:

<script language="JavaScript">
var foo = new ActiveXObject("WScript.Shell");
foo.Run("Firefox " + external.menuArguments.event.srcElement);
</script>


And added the entry to the registry as discussed.

  • Create entry:
    HKCU\Software\Microsoft\Internet Explorer\MenuExt\Open In Firefox
  • Update Key '(Default)' to the string c:\windows\ie_open_in_firefox.html
  • Add new key 'Context' with the DWORDS value HEX 20


Photo from tdenham at SXC

2 comments:

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...

Nice post and this fill someone in on helped me alot in my college assignement. Gratefulness you seeking your information.