-
-
Save yo-bur/69f0287359fd2d0e7095c1aa13f91d74 to your computer and use it in GitHub Desktop.
pwa-everything.user.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name PWA Everything | |
| // @author Evan Reichard | |
| // @version 0.0.1 | |
| // @match *://*/* | |
| // @grant none | |
| // @run-at document-idle | |
| // @noframes | |
| // ==/UserScript== | |
| let webManifest = { | |
| "name": "", | |
| "short_name": "", | |
| "theme_color": "#ff0000", | |
| "background_color": "#ff0000", | |
| "display": "standalone" | |
| }; | |
| let manifestElem = document.createElement('link'); | |
| manifestElem.setAttribute('rel', 'manifest'); | |
| manifestElem.setAttribute('href', 'data:application/manifest+json;base64,' + btoa(JSON.stringify(webManifest))); | |
| document.head.prepend(manifestElem); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment