PWAs Anywhere

Allow installing any webpage as a progressive web app

目前為 2024-03-24 提交的版本,檢視 最新版本

作者
octt
評價
0 0 0
版本
1.0.0
建立日期
2024-03-24
更新日期
2024-03-24
尺寸
1.3 KB
授權條款
ISC
腳本執行於
所有網站

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.

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.