MozillaZine

Firesomething 1.0.9

Talk about add-ons and extension development.
jedbro

User avatar
 
Posts: 1899
Joined: November 10th, 2002, 12:35 pm
Location: Mexico / Boulder Co.

Post Posted February 18th, 2004, 12:33 am

hey, can we add this to ER?

if so, could you e-mail us:
extension's name, size, install url, small description, long description, and the authors name, e-mail and/or website and ScreenShot URL's with captions for each image..

(database[at]mozdev.org)
Thanks!!!

old momokatte
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 18th, 2004, 1:09 am

jedbro wrote:hey, can we add this to ER?

o_O

You're kidding, right? This is the browser extension equivalent of Janet Jackson's nipple or Conan O'Brien's recent trip to Canada!

Heheheh...anyways, I'll think about it. I'd like to add a user interface and a few other features before having it listed anywhere other than this forum. I'm really glad so many people enjoy it, though -- and I wonder how many people are using it to revert the name back to Firebird or Phoenix... ;)

bengine

User avatar
 
Posts: 84
Joined: October 1st, 2003, 10:49 pm

Post Posted February 18th, 2004, 2:24 am

This extension really rock, dude!

Mozilla Spaceshark
Mozilla Moonrock

:banana:
Windows XP SP2
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041115 Firefox/1.0

Torisugari
 
Posts: 1634
Joined: November 4th, 2002, 8:34 pm
Location: Kyoto, Nippon (GMT +9)

Post Posted February 18th, 2004, 2:34 am

I thought I PMed new topic to you, but I coundn't find it both outbox and sentbox. Then again...

momokatte wrote:..., but it does require installing a JavaScript file in the Components directory and I don't think I want to do that just yet. I'll hold off until there's a way to do it at runtime from within an extension.

I edited it to have it be within an extension.
Code: Select all
var AboutFireSomethingService =
{
   impl:
   {
      ioService:null,
      newChannel:function(uri)
      {
         if(!this.ioService)
            this.ioService = Components.classes["@mozilla.org/network/io-service;1"]
                        .getService(Components.interfaces.nsIIOService);
         return this.ioService
               .newChannel("chrome://firesomething/content/about.xhtml",null,uri);
      },
      QueryInterface: function(iid)
      {
         if (   !iid.equals(Components.interfaces.nsISupports) &&
            !iid.equals(Components.interfaces.nsIAboutModule))
               throw Components.results.NS_ERROR_NO_INTERFACE;
         return this;
      }
   },

   factory:
   {
      createInstance: function(outer, iid)
      {
         if (outer != null)
            throw Components.results.NS_ERROR_NO_AGGREGATION;

         if (   !iid.equals(Components.interfaces.nsIAboutModule) &&
            !iid.equals(Components.interfaces.nsISupports))
            throw Components.results.NS_ERROR_INVALID_ARG;
         return AboutFireSomethingService.impl.QueryInterface(iid);
      }
   },

   register:function()
   {
      var compman=Components.manager;
      compman.QueryInterface(Components.interfaces.nsIComponentRegistrar);
      var cid= Components.ID('{1dd0cb48-aea3-4a52-8b29-01429a542863}');
      var contractid = "@mozilla.org/network/protocol/about;1?what=firesomething";

      if(!compman.isCIDRegistered(cid))
         compman.registerFactory(cid,"AboutFireSomethingService",contractid,this.factory)
   }
}

//register
AboutFireSomethingService.register();


The last line AboutFireSomethingService.register(); doesn't have to be there as long as browser call that function at least once per session (e.g.move it to init func or onload event listener etc.)

edit : er, it still looks ugly.
please dl from here.
http://cgi29.plala.or.jp/~mozzarel/addo ... mething.js
Last edited by Torisugari on February 18th, 2004, 2:59 am, edited 2 times in total.

old momokatte
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 18th, 2004, 2:47 am

Torisugari you totally rock! You're my hero! :mrgreen:

You probably saved me from 500 hours of headaches, too. XPCOM documentation twists my mind in a knot. >_<

JDK

User avatar
 
Posts: 1609
Joined: January 9th, 2004, 5:47 am
Location: Uhhh...Here.

Post Posted February 18th, 2004, 3:16 am

Please, PLEEAASSEE!!! do a version for Mozilla. Life just isn't any fun unless the whole family's involved.
Member - Ubuntu ForumsStaff
--- Zenwalk 4.0/SLED 10/Ubuntu 6.10 ---
I need another cup of java... but not that Sun crap...

Torisugari
 
Posts: 1634
Joined: November 4th, 2002, 8:34 pm
Location: Kyoto, Nippon (GMT +9)

Post Posted February 18th, 2004, 3:31 am

I found it can be more flexible.
above register() requires no arguments, but...

Code: Select all
var AboutFireSomethingService=
{

...

...

   register:function(browserName)
   {
      var compman=Components.manager;
      compman.QueryInterface(Components.interfaces.nsIComponentRegistrar);
      var cid= Components.ID('{1dd0cb48-aea3-4a52-8b29-01429a542863}');
      if(!browserName) browserName="firesomething";

      var contractid = "@mozilla.org/network/protocol/about;1?what="+browserName;

      if(!compman.isCIDRegistered(cid))
         compman.registerFactory(cid,"AboutFireSomethingService",contractid,this.factory)
   }
} ;

Now that browser can redirect from about:Lightningdragon to the book of mozilla, if init function knows browser's name.

old momokatte
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 18th, 2004, 4:05 am

The init function could know the browser's name, but the extension generates a new name for each new browser window unless firesomething.samename is set to true -- and I'm going to make it simple for the user to generate a new name in the future. I think I'll just keep about:firesomething for now.

intatia
 
Posts: 296
Joined: January 4th, 2004, 6:02 am
Location: Welly

Post Posted February 18th, 2004, 10:51 am

about:firesomething hahahahaha:):) Nice.

old momokatte
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 18th, 2004, 3:54 pm

1.0.6.

Some people are gonna hate me for this, but I couldn't stop myself. about:firefox has been added as well. Let me know what you think of the text.

Also, Ctrl+` now generates a new product name for the current window (or all windows if you have firesomething.samename enabled).

Spewey
Folder@Home

User avatar
 
Posts: 5799
Joined: January 25th, 2003, 2:06 pm
Location: St. Paul, Minnes°ta

Post Posted February 18th, 2004, 4:35 pm

Cool. I love the daily updates. My question about the about:firefox parable:

Why did it sit around contemplating? Can't we rewrite that part to make it look like a flash of brilliance?

old momokatte
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 18th, 2004, 4:43 pm

Spewey wrote:Why did it sit around contemplating?

It was busy finalizing trademarks and making new graphics. ;)

Waldo

User avatar
 
Posts: 596
Joined: July 29th, 2003, 8:21 am
Location: Cambridge, MA

Post Posted February 18th, 2004, 8:07 pm

momokatte wrote:Some people are gonna hate me for this, but I couldn't stop myself. about:firefox has been added as well. Let me know what you think of the text.

The Book of Mozilla 8:10? That should be The Book of Mozilla 2:9.

intatia
 
Posts: 296
Joined: January 4th, 2004, 6:02 am
Location: Welly

Post Posted February 18th, 2004, 8:53 pm

Weeeee!

wslnptc

User avatar
 
Posts: 11
Joined: October 16th, 2003, 3:23 pm

Post Posted February 19th, 2004, 12:42 am

There is a problem with this extension and web-page-titles includeing non english characters. The title just gets cut off at the first occurrens of such a character. Visit this url to see what I mean...

http://www.baum-software.com/

This is probably not to hard to fix.


...And thanks for an absolutely wounderfull extension.

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 1 guest