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 Files\Mozilla Firefox 3.6 Beta\firefox.exe" %URL%
   }
return
#IfWinActive

But I'm still looking for a Chrome embedded solution...

link|improve this question

75% accept rate
From searching around the web, I don't see anything that could do that. Mirror, from Zonator.com (right on the front page, middle left), however, does open a small always-on-top window from which you can drag your URL bar contents and open it in Firefox. Drop a comment if this works and I'll put it as an answer. – Nathaniel Dec 30 '09 at 18:39
Not as convenient as I would like it to be... But thanks to have looked for it. – fluxtendu Dec 30 '09 at 21:44
is "Ctrl+Shit+F" right? You really don't like F ? ;) – CAD bloke Feb 16 '11 at 19:24
feedback

8 Answers

up vote 6 down vote accepted
+100

Try this:

#IfWinActive [Chrome's window ID, I'll explain later]
!f:: ;Alt-F
MyClip := ClipboardAll
Send !d
Send ^c
Run P:\ath\to\firefox.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 :)

link|improve this answer
Thanks, it works. I have used the windows ID: ahk_class Chrome_WindowImpl_0 Not the first time that AHK help me, maybe I'm gonna learn more of this language: Is it possible to do it without messing with the clipboard? I think the url is directly guessable, Windows Spy: >>>>>>>>>>>( Hidden Window Text )<<<<<<<<<<< >>>>( TitleMatchMode=slow Visible Text )<<<< hxxp://superuser.com/questions/89449/google-chrome-plugin-bookmarklet-open-in-fi‌​refox ---- How to assign this to a var? – fluxtendu Jan 6 '10 at 10:43
1  
(Sorry I wait a little before giving you the bounty, In case of someone came with something better...) – fluxtendu Jan 6 '10 at 10:51
Hey, if you're going to put a bounty on a question, better make sure you get the best :P I'm not too well versed in grabbing window text, but the WinGetText funtion, and string functions, could prove useful - you could also use regex to grab the first URL-formatted text. There's nothing really wrong with the clipboard approach in how it works - but it has always felt very hackish. – Phoshi Jan 6 '10 at 11:10
This didn't work for me until I put 'ClipWait' after the 'Send ^c' line. The computer was too quick for the clipboard. – pelms Jan 18 '11 at 15:07
feedback

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.

link|improve this answer
feedback

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.

link|improve this answer
feedback

I had been using the Autohotkey solution until Chrome changed the way URLs are displayed in the latest dev version, omitting the http(s)://.

Modified code to run in the latest dev, with a new keyboard shortcut Ctrl+Shift+Menu Key to avoid conflict with some other program's global shortcut:

#IfWinActive ahk_class Chrome_WidgetWin_0
^+AppsKey:: ;Ctrl+Shift+F
ControlGetText, URLbartxt, Chrome_AutocompleteEditView1
RegExMatch(URLbartxt,"^((ht|f)tps?|file)://\S+$",URL)
Run "C:\Program Files\Mozilla Firefox\firefox.exe" %URLbartxt%
if URL <> 
   {
   ;New Chrome versions do not display http:// in omnibar :(
   ;Run "C:\Program Files\Mozilla Firefox\firefox.exe" %URL%

   }
return
#IfWinActive
link|improve this answer
feedback

If you are using OSX, you may want to check out the latest version of Choosy

link|improve this answer
feedback

There is a Chrome extension for this, but it only works in OS X:

Open with Other Apps

link|improve this answer
feedback

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 Files\Mozilla Firefox\firefox.exe" %URL%
   }
return
#IfWinActive
link|improve this answer
feedback

The code below works for me.

No need for regular expressions, changed to "Chrome_OminiboxView1", and not confirm if URLbartxt is a valid URL.

Probably this is sufficient for most people. If this code stops working, check the adress bar with your Window Spy.

#z::
 IfWinActive ahk_class Chrome_WidgetWin_0
ControlGetText, URLbartxt, Chrome_OmniboxView1
   Run "C:\Program Files\Mozilla Firefox\firefox.exe" %URLbartxt%
return
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.