您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
一键网页支持PWA插件
// ==UserScript== // @name PWA Everything // @author FlechazoPh GitHub@FlechazoPh https://github.com/FlechazoPh/PWAEverthing // @version 1.0.1 // @match *://*/* // @grant none // @run-at document-idle // @noframes // @license MIT // @description 一键网页支持PWA插件 // @namespace https://greasyfork.org/users/982390 // ==/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);