[Greasemonkey] Skype's mime type not found in a greasemonkey script

esquifit esquifit at googlemail.com
Tue Oct 10 03:38:32 PDT 2006


I cannot test this specific type because I don't have Skype installed.
With known types like text/plain, or text/xml

alert( navigator.mimeTypes.namedItem('text/plain') )

rerturns a MimeType object, whereas with non-existing types

alert( navigator.mimeTypes.namedItem('text/any-non-existing-type') )

returns null.  I think this is enough for your needs, isn't it?

2006/10/10, Olivier Vernin <overnin at gmail.com>:
> >Did you tried with navigator.wrappedJSObject.mimeTypes (or somethingin the
> style)?
>
> I just try, but it seems to me that it's equivalent to
> unsafeWindow.navigator.mimeTypes, isn't it?
>
> Anyway, the returned mime type list is not different. There is no
> "application/x-skype" whatever the way I access the navigator object, i.e.
> into a XPCNativeWrapper or not (wrappedJSObject or unsafeWindow).
>
> Olive
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list