How to force Firefox to open a file which does not have a .txt extension as if it did have one? September 12, 2023 by Tarik For a quick solution, you can add view-source: before the url. This also works in Chrome.