Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Fw: Questions About Programming For Firefox

瀏覽次數:0 次
跳到第一則未讀訊息

pham cao tri

未讀,
2006年10月12日 中午12:33:412006/10/12
收件者: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

未讀,
2006年10月12日 下午1:04:392006/10/12
收件者:
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 則新訊息