Firesomething 1.0.9
-
- Posts: 1899
- Joined: November 10th, 2002, 12:35 pm
- Location: Mexico / Boulder Co.
- Contact:
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
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...
-
- Posts: 1634
- Joined: November 4th, 2002, 8:34 pm
- Location: Kyoto, Nippon (GMT +9)
- Contact:
I thought I PMed new topic to you, but I coundn't find it both outbox and sentbox. Then again...
I edited it to have it be within an extension.
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
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.
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
- JDK
- Posts: 1609
- Joined: January 9th, 2004, 5:47 am
- Location: Uhhh...Here.
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...
--- Zenwalk 4.0/SLED 10/Ubuntu 6.10 ---
I need another cup of java... but not that Sun crap...
-
- Posts: 1634
- Joined: November 4th, 2002, 8:34 pm
- Location: Kyoto, Nippon (GMT +9)
- Contact:
I found it can be more flexible.
above register() requires no arguments, but...
Now that browser can redirect from about:Lightningdragon to the book of mozilla, if init function knows browser's name.
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.
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
-
- Posts: 296
- Joined: January 4th, 2004, 6:02 am
- Location: Welly
- Contact:
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 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).
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).
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
- Waldo
- Posts: 596
- Joined: July 29th, 2003, 8:21 am
- Location: Cambridge, MA
- Contact:
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.
-
- Posts: 296
- Joined: January 4th, 2004, 6:02 am
- Location: Welly
- Contact:
- wslnptc
- Posts: 11
- Joined: October 16th, 2003, 3:23 pm
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.
http://www.baum-software.com/
This is probably not to hard to fix.
...And thanks for an absolutely wounderfull extension.