Files
userscripts/scripts/pwa-everything.user.js
T

22 lines
588 B
JavaScript

// ==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);