Click here to Skip to main content
13,344,273 members (51,314 online)
Click here to Skip to main content
Add your own
alternative version


73 bookmarked
Posted 31 May 2005

Firefox Code Project Search Bar

, 24 Jun 2005
Rate this:
Please Sign up or sign in to vote.
A direct port of the Code Project Search Bar, but for Firefox instead of IE.



The Firefox Code Project SearchBar is a direct port of the IE Code Project SearchBar to the Firefox browser. It gives you almost all the same features - you can still do searches at any time, from any web page... but now you have the option of opening search results in a new tab, thanks to Firefox.

Here's what it looks like:

System requirements

Firefox 1.0 or later, tested on 1.0.3 and 1.0.4.

SearchBar features

Quick searching

You can search the same way as the IE toolbar does - you can just click the button and search the article text. Alternatively, you can click the little arrow on the right hand side of the button, and choose from a few different options.

You'll notice a new option in the 0.3 version of the toolbar, a Google search option. This search option uses Google to search CodeProject, which is much easier than always typing the site: as a keyword into Google. And yes, I know about quick searches in Firefox.)

Firefox natively supports drag and drop searching, so you can use that with this toolbar as well.

Code Project site links

You can click the Site Links button to see a menu of shortcuts to various areas of the site. This is an almost direct copy of the IE toolbar, with the same useful features. The only major feature that is missing right now is the Code Project Web Service reader, which I have not had the time to add.

The SearchBar main menu

Click the down arrow next to the CodeProject button to see the control menu:

You can clear the current search history or open the Options page via this menu. You can also more easily get access to the latest articles page, which I personally tend to read a lot.

SearchBar options

Click Options to open the SearchBar options dialog. The options are fairly self-explanatory.

The new option in Version 0.3: Open Site Links in new tab. The default behavior has been changed to not open site links in a new tab even if you have the search using a new tab. This makes it a little easier to navigate the way you'd like.

Installing the SearchBar

If you are using the Firefox browser, you can go to the homepage link and you will see a link similar to this:

Click the Install Now link to install the toolbar, and Firefox will do the rest. You will have to restart your browser in order to view the toolbar.

Uninstalling the SearchBar

You can uninstall, or even just disable the SearchBar using the Firefox Extensions manager.


This SearchBar was written to directly model the original IE version by Michael Dunn.

Here's a link to the greatest XUL/Firefox toolbar tutorial that you could ever hope for: Born Geek.

Source code

I've included the source code for the current version of this toolbar. I'm not going to write a full article to explain how it works, since the BornGeek tutorial linked above is much better than I could write. Download the source code at the top of the page, and use the instructions on BornGeek to compile it into an extension that you can install.

Revision history

  • v0.2 - First version submitted to Code Project, lacking a few features still.
  • v0.3 - New features: Google CodeProject search, context menu.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Lowell Heddings
Web Developer
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionAutopopulating history in combobox while editing Pin
10162-Nov-08 21:07
member10162-Nov-08 21:07 
GeneralA useless waste of screen space Pin
Lord Sy11-Sep-07 5:21
memberLord Sy11-Sep-07 5:21 
GeneralDoes not work in FireFox 2 Pin
virtualnik3-May-07 0:22
membervirtualnik3-May-07 0:22 
QuestionFirefox Toolbar Pin
HarishDixit23-Jul-06 22:24
memberHarishDixit23-Jul-06 22:24 
AnswerRe: Firefox Toolbar Pin
georgekjolly29-Dec-06 0:21
membergeorgekjolly29-Dec-06 0:21 
GeneralRe: Firefox Toolbar Pin
Dev_SenthilKumar25-Apr-07 3:40
memberDev_SenthilKumar25-Apr-07 3:40 
GeneralWeb service reader is obsolete now Pin
Michael Dunn3-Feb-06 20:03
sitebuilderMichael Dunn3-Feb-06 20:03 
GeneralVersion 1.5 Pin
viaduct15-Nov-05 1:22
memberviaduct15-Nov-05 1:22 
GeneralRe: Version 1.5 Pin
Lowell Heddings15-Nov-05 19:55
memberLowell Heddings15-Nov-05 19:55 
GeneralRe: Version 1.5 Pin
viaduct16-Nov-05 0:17
memberviaduct16-Nov-05 0:17 
Generalcool, but I use mozilla Pin
MadHatter ¢31-May-05 19:31
MadHatter ¢
31-May-05 19:31 
GeneralRe: cool, but I use mozilla Pin
Lowell Heddings1-Jun-05 3:56
memberLowell Heddings1-Jun-05 3:56 
GeneralRe: cool, but I use mozilla Pin
Anonymous2-Jun-05 6:02
sussAnonymous2-Jun-05 6:02 
GeneralRe: cool, but I use mozilla Pin
Lowell Heddings2-Jun-05 8:38
memberLowell Heddings2-Jun-05 8:38 
QuestionSource? Pin
Jason De Arte31-May-05 18:42
memberJason De Arte31-May-05 18:42 
I'm glad that you did this - but I would realy like to know how you did it.

What interfaces did you have to implement?
Was it in COM or XPCOM?
Did you progamaticaly create the UI or did you use XUL?
Is it packaged JavaScript or written in C++?
How is code signing different for Mozilla?
What sort of access to the DOM of the loaded web page does a toolbar have?
Is a FireFox toolbar like an Internet Explorer toolbar?
For those of us that write ActiveX controls for a living, how does the ActiveX model for plugins translate or compare to what's available under Mozilla/FireFox?

You know - generic questions Wink | ;)
Not to long ago, I was thinking of making FF toolbar as a side project - but tracking down the documentation/samples was hell and I gave up to work on, well work. Cool | :cool:

It would be great if there were an artical here on CodeProject that would go into detail on the ins and outs of making a toolbar for FireFox

[ Jason De Arte | Toy Maker | ]
AnswerRe: Source? Pin
Lowell Heddings1-Jun-05 4:02
memberLowell Heddings1-Jun-05 4:02 
AnswerRe: Source? Pin
Lowell Heddings1-Jun-05 8:59
memberLowell Heddings1-Jun-05 8:59 
GeneralCool Pin
oykica31-May-05 15:59
memberoykica31-May-05 15:59 
GeneralTodo.... Pin
Lowell Heddings31-May-05 12:30
memberLowell Heddings31-May-05 12:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.180111.1 | Last Updated 24 Jun 2005
Article Copyright 2005 by Lowell Heddings
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid