您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press `h` to hide the UI
// ==UserScript== // @name map-making.app hide UI // @namespace alienperfect // @match https://map-making.app/* // @grant GM_addStyle // @version 1.1 // @author Alien Perfect // @description Press `h` to hide the UI // ==/UserScript== "use strict"; const key = "h"; let style; let hidden; document.addEventListener("keydown", (e) => { if (e.key === key && document.activeElement.tagName !== "INPUT" && !hidden) return hide(); if (e.key === key && hidden) return show(); }); function hide() { style = GM_addStyle(` .embed-controls {display: none !important} .SLHIdE-sv-links-control {display: none !important} [class$="gmnoprint"], [class$="gm-style-cc"] {display: none !important} `); hidden = true; } function show() { style.remove(); hidden = false; }