SingleFile README

The project's README from github.com/gildas-lormeau/SingleFile. As one markdown file: README.md.

SingleFile

SingleFile helps you to save a complete web page into a single HTML file. SingleFile is a Web Extension (and a CLI tool) compatible with Chrome, Firefox (Desktop and Mobile), Microsoft Edge, Safari, Vivaldi, Brave, Waterfox, Yandex browser, and Opera.

Table of Contents

Demo

https://user-images.githubusercontent.com/396787/156664907-cc458e35-f41b-45ca-91eb-372213812b44.mp4

Install

SingleFile can be installed from the store of:

You can also download the zip file (https://github.com/gildas-lormeau/SingleFile/archive/master.zip) of the project and install it manually by unzipping it somewhere on your disk and following these instructions:

Getting started

Additional notes

FAQ

See https://github.com/gildas-lormeau/SingleFile/blob/master/faq.md

Release notes

See https://addons.mozilla.org/firefox/addon/single-file/versions/

Known Issues and Troubleshooting

See https://github.com/gildas-lormeau/SingleFile/blob/master/known-issues.md

Command Line Interface (SingleFile CLI)

You can save web pages to HTML from the command line interface. See here for more info: https://github.com/gildas-lormeau/single-file-cli.

Integration with user scripts

You can execute a user script just before (and after) SingleFile saves a page. For more info, see https://github.com/gildas-lormeau/SingleFile/wiki/How-to-execute-a-user-script-before-a-page-is-saved.

File format comparison

| | HTML | Self-extracting ZIP | MHTML | Webarchive (Safari) | HTML+folder | | --- | :---: | :---: | :---: | :---: | :---: | | Pages are saved as a single file | ✓ | ✓ | ✓ | ✓ | | | HTML and styles are minified | ✓ | ✓ | | | | | Unused HTML and styles are removed from files | ✓ | ✓ | | | | | Binary resources are not encoded in base 64 | | ✓ | | ✓ | ✓ | | Files are compressed | | ✓ | | | | | Files can be viewed without installing any extension | ✓ | ✓¹ | ✓² | ✓³ | ✓ | | Files can be viewed without running JavaScript | ✓ | | ✓ | ✓ | ✓ | | Files can be unzipped to extract page resources | | ✓ | | | n/a | | Files contains the text of the page (plain or formatted) which can be indexed | ✓ | ✓⁴ | ✓ | ✓ | ✓ |

Footnotes:

¹ When using the "universal" self-extracting file format

² Only in Chromium-based browsers, and Internet Explorer

³ Only in Safari

⁴ An option must be enabled in the extension

Projects using/compatible with SingleFile

Privacy Policy

See https://github.com/gildas-lormeau/SingleFile/blob/master/privacy.md

Contributors

See https://github.com/gildas-lormeau/SingleFile/blob/master/contributors.md

Code derived from third party projects

Icons

License

SingleFile is licensed under AGPL. Code derived from third-party projects is licensed under MIT. Please contact me at gildas.lormeau <at> gmail.com if you are interested in licensing the SingleFile code for a commercial service or product.

Suggestions are welcome :)

SingleFile (gildas-lormeau/SingleFile)

Searching Database…

这是什么?SingleFile 是一款浏览器扩展,可以把任意网页完整、原样地保存成一个 HTML 文件,方便你留档并以后随时打开查看。
它是浏览器扩展还是桌面软件?它是安装在浏览器工具栏里的网页扩展,不是桌面程序。另外还有一个独立的命令行工具 SingleFile CLI,可以在终端里保存网页。
怎么安装并保存第一个页面?从浏览器的应用商店(Firefox、Firefox for Android、Chrome、Safari、Edge)安装,或者从 zip 发布包手动安装。然后点击工具栏里的 SingleFile 按钮保存页面,也可以按 Ctrl+Shift+Y 快捷键。
别人没装 SingleFile 也能打开我保存的页面吗?可以——默认保存的单个 HTML 文件在任何浏览器里都能打开,不需要装扩展,也不需要 JavaScript。MHTML 文件只能在 Chromium 内核浏览器和 Internet Explorer 中打开,Safari webarchive 只能在 Safari 中打开,自解压 ZIP 文件需要 JavaScript,除非使用 universal 格式。
支持哪些浏览器?Chrome、Firefox(桌面版和手机版)、Microsoft Edge、Safari(macOS 和 iOS)、Vivaldi、Brave、Waterfox、Yandex 浏览器和 Opera。
保存的页面存在哪里——我的电脑还是服务器上?默认保存在本地:页面会存到你浏览器里设置的下载文件夹。如果需要,也可以在选项里开启保存到 Google Drive 或上传到 GitHub。
免费吗?商用也要收费吗?它基于 AGPL 协议免费开源,其中引用的第三方代码基于 MIT 协议。如果想在商业服务或产品中使用 SingleFile 的代码,作者希望你联系他洽谈授权事宜。
保存之前能在页面上做标注或写笔记吗?可以。在右键菜单里选择“Annotate and save the page...”(标注并保存页面),就能在保存前高亮文字、添加笔记或删除不需要的内容。
它能在我浏览时自动保存页面吗?可以。可以为当前标签页、未固定的标签页或所有标签页开启自动保存,页面加载完成后就会自动保存。也可以一键批量保存选定的、未固定的或所有标签页。
存在性证明选项是什么?这个选项会把保存页面的 SHA-256 哈希写入区块链,以后就能证明该页面确实以这个确切的形式存在过。
有哪些工具是基于 SingleFile 开发的?有不少——网页存档工具 ArchiveBox,书签管理器 linkding、Linkwarden 和 Karakeep,电子书阅读器 KOReader,Zotero Connector,以及一个用于阅读已保存页面的 Obsidian 插件,都能配合 SingleFile 的文件使用。
Size
345.6 MB
Stars
22.6K
Age
16y
Commits · 90 Days