Force view text file instead of download in Firefox?

10,439

Maybe you should give this addon a try. I've never used it but it looks like it might work for you.

Share:
10,439

Related videos on Youtube

davr
Author by

davr

Hello World

Updated on September 17, 2022

Comments

  • davr
    davr almost 2 years

    Often times I'll click on a random link to a .sh or .py or .cpp or ... file in Firefox, and all I want is to view the code. I don't have a Firefox handler set up for every text file extension under the sun, and I don't want to have to. Is there an easy way to force Firefox to view the file as text instead of trying to save (or open in external app)?

  • davr
    davr almost 15 years
    Applications tab: that would require me to add something for each and every file type, I was hoping to do it all at once. extension: I looked, but couldn't find any that did what I wanted. Hence why I am asking on here
  • davr
    davr almost 15 years
    Good old firefox...this was originally reported as a bug 9 years ago. This extension was made 3 years ago. Bug still not fixed...but at least I can use the extension.
  • ElPoney
    ElPoney about 10 years
    Yes this is a great addon. It's really annoying that the world is moving away for this way of working (take chrome that wants to save everything)
  • Jan Hudec
    Jan Hudec almost 5 years
    This is server-side configuration. If it is configured properly, things work. But more often than not it is configured wrong, and the point is working around that bad configuration.
  • mivk
    mivk over 3 years
    Yes, the Open in Browser add-on is the best solution until something as simple is integrated into Firefox (but I fear it never will...).