Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

My First Firefox Extension: "Personal Toolbar Button"

Quantum Jim (610382) writes | more than 7 years ago

User Journal 0

I wrote my first Firefox 1.5 extension called "Personal Toolbar Button." Of course, it simply adds a toolbar button that toggles on/off the "Personal Toolbar" toolbar. This is where I keep all my bookmarks, but too many toolbars wastes useful screen real estate. Install it at extension's web site. (Thanks Mozilla.org!)

I wrote my first Firefox 1.5 extension called "Personal Toolbar Button." Of course, it simply adds a toolbar button that toggles on/off the "Personal Toolbar" toolbar. This is where I keep all my bookmarks, but too many toolbars wastes useful screen real estate. Install it at extension's web site. (Thanks Mozilla.org!)

I was inspired by the web developer extension which uses the same trick to toggle its toolbar. I created a new GUID for the extension using an online UUID generator. This tutorial at Mozillazine provided the template for the extension. Roachfiend's tutorial filled in the gaps on how to package it as an installable XPI. Oh, and I used the DOM Inspector to figure out which CSS declarations/IDs to use.

The entire project took me about two hours because I kept making stupid mistakes. I originally wanted to write an extension for a programmable set of buttons for Firefox's toolbar, but I quickly realized that was too ambitious. Programming the extension was fun and a very practical use of my time - at least for me. All in all, I'm very pleased with the result. I hope someone else finds this project useful as well...

cancel ×

0 comments

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...