Hi guys,

If any of you have experience writing Mozilla extensions (XUL/JavaScript/XBL/XPCOM and all that), I'd be grateful for a bit of help -- I'm wondering if it's possible write an extension which can be registered as the main way to interpret a particular MIME type downloaded from a web server.

An example scenario: say I have a new MIME type, text/x-rot13-html, (with an extension of .htmlr13 or something). What I'd like is to be able to write a Mozilla extension whose, say, JavaScript gets triggered when the browser detects that particular MIME type, and perhaps the JavaScript can un-rot13 the HTML and display it to the screen. It's very much similar to a classic Netscape plugin in that the extension is designed to work on particular MIME types, except that I really don't want to dive into writing native-code in C or C++, since it's orders of magnitude harder than it needs to be.

Does anyone know if this is possible to do with a Mozilla extension? All the research I've done so far looks like I'll have to go the native-code route with a proper plugin, rather than a lightweight extension.


-- % Andre Pang : trust.in.love.to.save

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to