Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fw: Questions About Programming For Firefox

0 views
Skip to first unread message

pham cao tri

unread,
Oct 12, 2006, 12:33:41 PM10/12/06
to dev-apps...@lists.mozilla.org
Subject: Questions About Programming For Firefox


Hello, I'm a student and I'm working on my final year project about Firefox.
I'm not an English so please excuse my bad English.

Can I ask you some questions ?

My project is to create an extension that can change the fonts, style,.. of any text in a website to appropriate fonts in system before the website displays. But I don't know how to do that. I've already known about XPCOM.

Can you tell me how I can obtain the content of website before it displays ?
Which module I must read to create my extension ?

Thanks in advance.


Thomas

unread,
Oct 12, 2006, 1:04:39 PM10/12/06
to
I think you must not use XPCOM. The most thinks can be changed by
JavaScript. For an example see the WebDeveloper
(http://chrispederick.com/work/webdeveloper/) extension (i think it can
change some stuff on the fly, like removing CSS).
You can write an extension that adds an focus-eventlistener. With this
event can you get the document (and change it) before it is presented in
the browser. Then can you delete all styles and remove all css links and
replace it by yours.
Hope this helps.
0 new messages