Open in Browser is a Firefox extension that opens PDFs, images directly instead of downloading them

Firefox as you understand, has built-in help for viewing some doc codecs like TXT, PDF, XML and picture codecs. But typically you get a obtain dialog open up, instead of the content material being displayed.

Open in Browser is a Firefox extension that opens PDFs, images directly instead of downloading them

That’s not handy if you happen to desire that the content material is opened in the browser, and is exactly what the Open In Browser extension for Firefox is meant to repair.

How does it work?

When you click on on URLs that comprise a file, web sites return a MIME kind (Multipurpose Internet Mail Extension) to your browser; these comprise one thing known as a “content-type” header.

Sometimes, the information that is provideds could not work as meant, for e.g. you may need clicked on a picture to view the full-size model, however instead Firefox exhibits you a obtain possibility instead of opening it instantly in the browser.

Example 1: The browser will directly obtain the PDF.

Open In Browser example 1

Example 2: Clicking a doc’s (or picture’s) URL prompts the obtain dialog instead of permitting the browser to view it.

Open In Browser example 2

Surprisingly each hyperlinks did not open the paperwork, regardless of the very fact that the “Preview in Firefox” possibility for PDF had been enabled. I examined different PDFs from my inbox, Internet Archive, and many others they usually all opened directly.

I put in the add-on and tried accessing the identical URLs. A brand new immediate appeared and Open in Browser detected them as “server despatched MIME”. It had an choice to open it with Firefox. This saves you the difficulty of downloading and opening it. Another benefit is that your downloads folder would not get cluttered.

Open In Browser example 1 - fixed

open in browser

The extension additionally lets you choose the best way the obtain needs to be dealt with; it may be used to open internet recordsdata in 5 methods: As a textual content, a internet web page, an XML, a picture or a PDF. This is of course restricted to the browser’s capabilities.

Obviously, you will have appropriate content material as properly for this to work. e.g. textual content paperwork, PDFs or PNGs. Other file sorts shall be downloaded as they’re usually dealt with by the browser.

Open In Browser options

There is a caveat, you will notice the obtain dialog twice anytime you attempt to obtain one thing (EXEs, ZIPs, MSIs and many others) when you might have the extension put in. There is a repair for this as properly: head to the about:addons web page, click on on Open In Browser > Options. Enable the setting that reads “Never ask to verify “Save File” motion”.

You will discover it has a hyperlink subsequent to it that says “utility/prs.oib-ask-once”, click on on it and you will notice a obtain dialog pop-up. Enable the “Do this robotically for recordsdata like this to any extent further” possibility for  it, and the extension will not trouble you with double obtain dialogs.

If the extension is not working with a specific file, attempt forcing it by going to the Tools menu (F10 or Alt) > Open in Browser > Enable for subsequent request.

Warning: Never set the “Open with Firefox” possibility after which allow “Do this robotically for recordsdata like this to any extent further” possibility. Doing that will open clean tabs endlessly, thus crashing your session. This is not associated to the add-on, however a problem with Firefox.

Open in Browser is an open supply extension, the supply code is obtainable on GitHub. The add-on improves the shopping expertise a bit, and saves some valuable time.

Check Also

How to identify fonts on any webpage without using an extension in Firefox and Chrome

Webpages include a number of visible parts, regardless that we could not usually discover them. …

Leave a Reply

Your email address will not be published. Required fields are marked *