Move userscripts into scripts/ subfolder
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// ==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);
|
||||
Reference in New Issue
Block a user