• 11
• 9
• 10
• 9
• 11
• entries
88
117
• views
62268

# My first Firefox extension!

132 views

That's right! I didn't feel like working on my game today, so instead I learned how to write Firefox extensions. Its called Goto Gamedev.net. It provides a toolbar icon that takes you to gamedev.net when you click on it. It even supports tabbing via middle-click. Here's a screenshot.

To install, try clicking here first. If this doesn't work, you'll have to download it first. Then, from the Firefox File menu, choose Open File... and select goto-gamedev.net.xpi. Clicking on it directly doesn't seem to work for me.

How did you do the sidebar in the last entry?

-IV

The CSS is here. In case you can't access it:
/* left sidenote */
h5
{
background-color: #746;
display: block;
float: left;
font-size: 1em;
font-weight: bold;
margin: .5em .5em 0 .5em;
text-align: left;
width: 25%;
}
h6
{
background-color: #324;
clear: left;
display: block;
float: left;
font-size: 1em;
font-weight: normal;
margin: 0 .5em .5em .5em;
text-align: left;
width: 25%;
}



To use it, just enclose the heading in H5 tags and the body in H6 tags.

Nicely done!

To have it auto-install, you need to make a hyperlink to something like this:
<a href="j_avascript:void(InstallTrigger.install({'NAME_HERE':'URL_HERE'}))">Auto-Install</a>

Excellent, thanks for the info. I've updated my post. Still doesn't work for me, but then I've been having trouble even with extensions from addons.mozilla.org.