max / PWAs Anywhere

安装步骤: 先安装脚本管理器,再点“安装”,最后打开脚本适用的网站。

用户脚本新手指南 Chrome Edge Firefox

发布时间:

版本: 1.0.1+6f9abeb 更新于

摘要: Allow installing any webpage as a progressive web app

许可证: ISC

反功能: 未说明

脚本来源与更新状态

以下数据来自原始来源,与本站收到的安装请求分开统计。

原始脚本: PWAs Anywhere

来源版本: 1.0.1

最近来源检查:

最近成功检查:

来源站日安装量
0
来源站总安装量
0
本站安装请求
0

本站收到的请求不代表用户已完成安装。

点击安装只表示本站收到安装请求,不代表安装已完成。 安装后无法使用?查看问题反馈与排查

This userscript live-patches any website that comes without a web app manifest, generating one automatically for your browser to detect, making it so that a good number of webpages can be forcefully installed as a progressive web app on your device. Mainly catered for Firefox mobile, but should work anywhere.

By default, the script will inject the generated manifest automatically on any webpage that doesn't provide its own. By using the options, usually accessible from your userscript manager's popup menu, you can either remove the current manifest, inject the dynamically generated one on a page that has its own (overriding it), or force reinjection of the custom manifest if that's for any reason needed.

Note that, for generating the manifest, the script relies on metadata already present on the site, as in the HTML page itself or well-known file paths. As per the PWA standard, the website must provide icons that are valid in both image format and resolution, otherwise issues may occur where either the page is installable as a PWA but will appear without an icon, or with a bad icon, or the browser will simply refuse to allow installation. I've seen that Chromium is more forgiving and will actually also install websites without icons, whereas Firefox is much more strict. I plan to implement dynamic icon generation in the future to automatically solve this problem for any site; in the meantime, you can use the option to force reinject a manifest, and a dialog prompt will appear, allowing you to provide an URL to any icon you want to use that you know should work.

Pro-tip: using this on Firefox and also want your forced-PWAs to work offline? Check out my Offline Caching add-on, it works seamlessly in conjunction with this userscript!

评分: 0