I have files which are just plain text, but have extension which is not .txt. Lets say the extension is .abc.
When I click on a link that points to such a file, such as file.abc, I’d like Firefox to open the file as if it was file.txt (i.e. open it inside Firefox, listed inside Firefox itself, just like what happens when I click on file.txt) instead of it asking how if I want to save it or open it, and then I have to go select the application to open it with, such Notepad or whatever.
I went to Tools → Options → Applications, but did not know what to do.
Added: Based on the comment below and the answer so far, it looks I did not explain myself well.
I want Firefox to open the file as if the file had .txt extension. When you click on a link in Firefox which has .txt, what does Firefox do? It does not open the file in Notepad or whatever, it opens right there, inside the browser, showing the listing of the file. I want to the same to happen when .abc extension.
I do not want to go around mess up with the Windows OS for this.
You can edit the
mymeTypes.rdfin your Firefox profile (while Firefox is not running) to add extension-to-type mappings mapping the extensions in question to “text/plain”. Unfortunately, Firefox has no user interface exposed for this operation….I’d make a backup of the file before editing; the syntax is a bit finicky.