Git Product home page Git Product logo

openinbrowser's Introduction

Open in Browser

Open in Browser is a Firefox extension that allows you to open documents directly in the browser.

Installation

You can install the extension from its addons.mozilla.org page.

Screenshots

Opening Dialog View as Menu

Configuration

You can add additional mime types to the list by creating a pref named extensions.openinbrowser.additional_mimes in about:config with the list of additional types separated by a |. For instance, application/pdf|audio/ogg-vorbis.

Limitations and Issues

  • It does not work for protocols other that HTTP because of a technical limitation. It is only possible to view the content as source in this case.
  • Automatic opening in browser is not implemented, that's why the "Do this automatically for files like this..." checkbox is greyed out when open in browser is selected.
  • Some users have reported compatibility issues with the "Tab Mix Plus" add-on.

Building the extension

You need a Unix shell with make and git in your PATH. Cygwin works well on Windows.

Go in the root of the sources and run:

make xpi

This will generate a openinbrowser-VERSION.xpi archive in the current directory.

If you want to modify the sources, first commit your changes in git and then run the above make command again. You can use git commit --amend to update the last commit.

Testing

A few manual tests are available in the tests directory.

For the HTTP protocol tests, you should serve the tests directory with a Web server that interprets PHP scripts. If you have Docker, you can use the following command:

cd openinbrowser/tests/
docker run -it -p 8080:80 -v "$PWD":/var/www/html php:5.6-apache

which will run a Web server on port 8080. You can then access the tests using http://localhost:8080/tests.html and follow the instructions.

For the file protocol test, open the tests/tests.html file from the file system (for instance. file:///C:/openinbrowser/tests/tests.html) and follow the instructions.

openinbrowser's People

Contributors

spasche avatar infocatcher avatar lekensteyn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.