Google Chrome plugin/bookmarklet: “open in Firefox”?

Posted on

Problem :

Is there a plugin or a bookmarklet for Chrome which opens the current page in Firefox?

Update:

Thanks Phoshi for the suggestion. Here is my AutoHotKey script (not messing with the clipboard…):

#IfWinActive ahk_class Chrome_WindowImpl_0
^+f:: ;Ctrl+Shift+F
ControlGetText, URLbartxt, Chrome_AutocompleteEditView1
RegExMatch(URLbartxt,"^((ht|f)tps?|file)://S+$",URL)
if URL <> 
   {
   Run "C:Program FilesMozilla Firefox 3.6 Betafirefox.exe" %URL%
   }
return
#IfWinActive

But I’m still looking for a Chrome embedded solution…

Solution :

Try this:

#IfWinActive [Chrome's window ID, I'll explain later]
!f:: ;Alt-F
MyClip := ClipboardAll
Send !d
Send ^c
Run P:athtofirefox.exe %Clipboard%
Clipboard := MyClip
MyClip = 
return
#IfWinActive

That’s an Autohotkey script, which would mean you had to install autohotkey, but if you don’t want to do that, I can convert it into a standalone .exe.

In either case, the two things that need to be changed are the P:ath to firefox, and Chrome’s ID. I don’t have chrome installed, but the Window Spy that comes with AHK can get the ID of a window, so that would do. Then, once you’d stuck this script in a text file with the extension.ahk and run it, would have Alt-F as a “firefox” key, which would quickly copy the current tab URL in GChrome, open that in FF, and return your clipboard to it’s old self. AHK is very light (My 1000-liner is taking 10mb of RAM right now (To be fair, it IS running a few extra clipboards, so I don’t know how much of that RAM is that), but my 15 line “Gaming Essentials” takes up something in the few kbs), so won’t impact performance at all. You could also do a GChrome button, to take FF back to GChrome, but I don’t know if chrome accepts the same command line arguments. If you need any help setting it up, I’m always happy to help 🙂

A very simple method:

In Chrome, drag the star (Address bar) to (already open) Firefox and it will open in Firefox.

It works both ways: drag the Firefox Address bar icon to Chrome.

You can drag Chrome tabs into Firefox tab bar and it will open up in FF. Not exactly what your looking for but it might work.

Using the top rated solution, I had to modify the script as shown below to work on my machine (and I prefer Win+Z key combination)

Thanks to everyone who built this solution, it works great!

#IfWinActive ahk_class Chrome_WidgetWin_0
#z::
ControlGetText, URLbartxt, Chrome_AutocompleteEditView1
RegExMatch(URLbartxt,"^((ht|f)tps?|file)://S+$",URL)
if URL <> 
   {
   Run "C:Program FilesMozilla Firefoxfirefox.exe" %URL%
   }
return
#IfWinActive

Leave a Reply

Your email address will not be published. Required fields are marked *