百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

open-in-browser

> 编程语言
开源

一款浏览器扩展程序,可让用户直接在浏览器中打开文件,而不需要下载它们。

99 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一款浏览器扩展程序,可让用户直接在浏览器中打开文件,而不需要下载它们。

Open in Browser

A browser extension that offers the ability to open files directly in the browser instead of downloading them. You can also change the MIME-type if you wish, and choose to remember the preferred action per file-type.

Screenshot

All screenshots

Installation

Install the extension from: https://addons.mozilla.org/firefox/addon/open-in-browser/

Firefox

Development: Visit about:debugging and load the extension/ directory.

Chrome

The extension does not work in Chromium-based browsers such as Chrome or Opera because the webRequest API does not support non-blocking asynchronous return values.

Development

  • The extension can directly be loaded from the extension/ directory.
  • The extension extracts the icons, translations and MIME-mappings from external sources. These can be generated using the gen-*.js files at the top of the repository.
  • To test whether the extension works, run npm run-script test-server (set the PORT environment variable if the default port is in use) and open the displayed URL in the browser.

History

The main inspiration is https://github.com/spasche/openinbrowser

This project was written in 2013, in an attempt to port the functionality of the Open in Browser Firefox add-on to Chrome. However, it was never published because the only way to ask the user for a decision is to use the blocking window.showModalDialog API. But this resulted in a terrible user experience because the browser would suspend all requests until the extension had returned.

In 2017, the project was revived, this time to port the functionality to Firefox, where extensions have to be written using the WebExtensions API - similar to Chrome's extension API. Contrary to Chrome, Firefox's webRequest API allows extension to suspend network requests in a non-blocking way, so it is feasible to show a non-blocking dialog to ask for input.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言