I was searching all over the net for this, and I couldn't find out anywhere. In the end I figured it out myself mostly through luck and I thought I'd post it hear encase anyone else was looking. Note that this doesn't allow you to extend a plugin to new fileformats, just change what plugin firefox uses for what files.
It's actually very very easy, I just haven't seen it documented anywhere, you just edit the file ~/.mozilla/firefox/pluginreg.dat Be warned that pluginreg.dat is clearly labled "Generated File. Do not edit.", however editing it has worked for me although that was immediately before writing this post, I've tested and my changes did survive the test deletion of a plugin, but I havn't tested anything else, so changes may magically vanish one day. On the plus side if you screw up delete the file and firefox will regenerate it.
the syntax is very simple, or at least the part we will be editing is,
useing a flash for example
Shockwave Flash 9.0 r31:$
Annoyingly there are no linebreaks to separate different plugins, but if you follow the syntax its clear where they begin or end.
The first line is obviously a path to the plugin, I have no clue what the second or third line is for, just leave them alone. The third line is the plugin's name that appears in about
:plugins. The forth line I don't know about either and there is no need to touch it.
Finally we get to the important part that one can edit to control one's plugins: the first line, is the sum total of the diffrent formats associated with this plug-in, in this case its "2" If you add or remove any filetypes to a plugin, make sure you change the number accordingly.
The final two lines are both a filetype associated with the flash plugin, shockwave-flash and futuresplash respectively, the format for these entries is:
<number> should be 1 higher than the previous row, when I first looked at pluginreg.dat they were all in sequence, I'd keep them that way just encase. <MIME> is unsuprisingly the mimetype of the format. name can be anything you chose it's soul purpose is to appear in about
:config. Finally file extensions, put as many as you like here with comma seperation.
so for example if I wanted to tell firefox to use the flash plugin for mpeg audio (rather stupid but it makes a nice example) I'd add
to the end of the list, then change the 2 to a 4.
In full the new flash plugin would look like
Shockwave Flash 9.0 r31:$
And probobly cause problems as soon as you tried to listen to mpeg ;)
And that's it. but a couple of finishing points:
On Debain and possibly others, the VLC plugin can play divx files (used by stage6.divx.com and others) but the plugin dons't have it listed by defualt, I added
to fix that and it worked perfectly. I also remember a divx problem on mplayer that's fixed by symlinking something into the plugin directory, so if you're a debian mplayer user and can't get divx streaming working that may be it.
And this is the first time I wrote a guide like this, so I'd appreciate any comments you have on it.