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

Change MIME type for .bib files (want to display as text)

499 views
Skip to first unread message

Markus Dehmann

unread,
Feb 6, 2009, 9:46:30 AM2/6/09
to
I need to change the way Firefox is handling .bib files; I think the
default MIME type setting is buggy.

These files are really just text file and they should be displayed
just like any other text file. But Firefox annoyingly opens a save
dialog and refuses to just show them.

Here is an example .bib file:
http://aclweb.org/anthology-new/P/P08/P08-1001.bib

Safari does it right: It just displays it right there. How can I do
that in Firefox?

Thanks!
Markus

(I have Firefox 3.0.6. I tried to mess with the mimeTypes.rdf file,
but no success.)

Redhat71

unread,
Feb 6, 2009, 5:43:07 PM2/6/09
to

replace the Content-Type with text/plain
https://addons.mozilla.org/en-US/firefox/addon/3207

Message has been deleted

EE

unread,
Feb 7, 2009, 4:24:26 PM2/7/09
to

According to the addons site, that extension is for older versions of
Firefox. Does Firefox read the file type from the system setup and list
that under Preferences/Options > Applications, or is it not listed at
all? Do you have the operating system set up with a default application
for handling those files?

Redhat71

unread,
Feb 7, 2009, 5:18:28 PM2/7/09
to
EE wrote:
> Redhat71 wrote:
>> Markus Dehmann wrote:
>>> I need to change the way Firefox is handling .bib files; I think the
>>> default MIME type setting is buggy.
>>>
>>> These files are really just text file and they should be displayed
>>> just like any other text file. But Firefox annoyingly opens a save
>>> dialog and refuses to just show them.
>>>
>>> Here is an example .bib file:
>>> http://aclweb.org/anthology-new/P/P08/P08-1001.bib
>>>
>>> Safari does it right: It just displays it right there. How can I do
>>> that in Firefox?
>>>
>>> Thanks!
>>> Markus
>>>
>>> (I have Firefox 3.0.6. I tried to mess with the mimeTypes.rdf file,
>>> but no success.)
>>
>> replace the Content-Type with text/plain
>> https://addons.mozilla.org/en-US/firefox/addon/3207
>
> According to the addons site, that extension is for older versions of

it wfm on 3.2a1pre, and the 2nd comment states it works on 3.0 as well

> Firefox. Does Firefox read the file type from the system setup and list
> that under Preferences/Options > Applications, or is it not listed at

it's from the server

[~]$ curl -I http://aclweb.org/anthology-new/P/P08/P08-1001.bib
HTTP/1.1 200 OK
Date: Sat, 07 Feb 2009 22:11:13 GMT
Server: Apache
Last-Modified: Thu, 12 Jun 2008 10:53:46 GMT
ETag: "101c1d41-1c5-4851003a"
Accept-Ranges: bytes
Content-Length: 453
Content-Type: text/x-bibtex
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

replace it to text/plain & firefox will treat it the way you like -->
"text file"

> all? Do you have the operating system set up with a default application
> for handling those files?

never seen text/x-bibtex before, and whether os understands it doesn't
matter in your case
cause you don't want firefox to ask the os what it should be opened
with, you just want firefox display it as "text file"

0 new messages