您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Scale down Milky Way Idle to be properly fit in Edge Canary when installed as a PWA
// ==UserScript== // @name MilkyWayIdle Edge Canary Scaler // @namespace http://tampermonkey.net/ // @version 1.0 // @description Scale down Milky Way Idle to be properly fit in Edge Canary when installed as a PWA // @author You // @match https://www.milkywayidle.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const topSpacing = 12; // Change this value to adjust the spacing // Create and inject CSS to adjust height properly let style = document.createElement('style'); style.innerHTML = ` html, body { height: calc(100vh - ${topSpacing}px) !important; /* Make the site think the screen is smaller */ overflow: hidden; margin: 0; padding-top: ${topSpacing}px; /* Add space at the top */ box-sizing: border-box; } `; document.head.appendChild(style); })();