Greasy Fork

Greasy Fork is available in English.

石之家 Icon

为《石之家》移动端添加 iOS Web App 图标

当前为 2023-12-27 提交的版本,查看 最新版本

// ==UserScript==
// @name         石之家 Icon
// @namespace    https://ff14risingstones.web.sdo.com/mob/index.html#/tiedes/77674
// @version      1.1
// @description  为《石之家》移动端添加 iOS Web App 图标
// @author       ShadyWhite
// @match        https://ff14risingstones.web.sdo.com/mob/*
// @icon         https://ff14risingstones.web.sdo.com/pc/favicon.ico
// @grant        none
// @license      MIT
// ==/UserScript==
(function() {
 'use strict';
    // 添加图标
    var iconLink = document.createElement('link');
    iconLink.rel = 'apple-touch-icon-precomposed';
    iconLink.sizes = '180x180';// 设置图标尺寸
    iconLink.href = 'https://ff14risingstones.web.sdo.com/pc/favicon.ico'; // 设置图标 URL
    document.head.appendChild(iconLink);
    // 添加启动画面
    // var splashLink = document.createElement('link');
    // splashLink.rel = 'apple-touch-startup-image';
    // splashLink.href = '替换为你想要的启动画面URL.png'; // 设置启动画面 URL
    // document.head.appendChild(splashLink);
    // 添加标题
    // var titleMeta = document.createElement('meta');
    // titleMeta.name = 'apple-mobile-web-app-title';
    // titleMeta.content = '替换为你想要的 Web App 标题'; // 设置 Web App 标题
    // document.head.appendChild(titleMeta);
})();