Sign in to follow this  
  • entries
    88
  • comments
    117
  • views
    62076

My first Firefox extension!

Sign in to follow this  

125 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.
Sign in to follow this  


4 Comments


Recommended Comments

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;
padding: .25em .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;
padding: .25em .5em;
text-align: left;
width: 25%;
}


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

Share this comment


Link to comment
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>

Share this comment


Link to comment
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.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now