mime-filter

How can I implement a content converter in Firefox for all page elements?

自闭症网瘾萝莉.ら 提交于 2020-01-01 10:03:46
问题 I'm attempting to port over an Internet Explorer plugin to Firefox, but I'm not sure where to look for what I need. Basically I need to be able to filter all content that is received by the browser with a certain Content-Type header. I tried implementing a stream converter, and this works, but only for the top-level document in the page, frame, or iframe. I had the same problem with IE, and getting around it was really hacky, and since I would ideally like this to be cross platform I would

IE MIME/content filtering

六眼飞鱼酱① 提交于 2019-12-23 12:36:46
问题 I'm looking into ways to develop an extension for IE6+ that will allow handling of custom MIME types. As an example, I need to be able to take a document with a custom MIME type that is returned by the server, perform some processing on it, and then change the MIME type back to something that IE can natively handle, such as text/html or image/jpeg. I am familiar with the urlmon MIME filters, but they have a huge weakness; they are only invoked for the top level document, and not for any of

How can I implement a content converter in Firefox for all page elements?

拈花ヽ惹草 提交于 2019-12-04 05:48:31
I'm attempting to port over an Internet Explorer plugin to Firefox, but I'm not sure where to look for what I need. Basically I need to be able to filter all content that is received by the browser with a certain Content-Type header. I tried implementing a stream converter, and this works, but only for the top-level document in the page, frame, or iframe. I had the same problem with IE, and getting around it was really hacky, and since I would ideally like this to be cross platform I would really like to be able to do this in Firefox without resorting to vtable hacks. The content is served