您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Full Screen the Games
// ==UserScript== // @name Full Screen Games on Typing.com // @namespace http://tampermonkey.net/ // @version 1.0 // @description Full Screen the Games // @author Zen // @match https://www.typing.com/student/game/* // @license MIT // @grant none // ==/UserScript== (function() { 'use strict'; const observer = new MutationObserver((mutations, obs) => { const container = document.getElementById('js-game'); container.style = "width: 100vw; height: auto; max-height: 100vh; aspect-ratio: 916 / 400; display: block;" const canvas = container && container.querySelector('canvas'); if (canvas) { document.body.innerHTML = ''; document.body.append(container); obs.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true }); })();