您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
gives access to copy existing map and saving it
- // ==UserScript==
- // @name Hitbox saving existed maps
- // @namespace http://tampermonkey.net/
- // @version 2025-01-26
- // @description gives access to copy existing map and saving it
- // @author Mr_FaZ3a
- // @match https://hitbox.io/
- // @icon https://www.google.com/s2/favicons?sz=64&domain=hitbox.io
- // @grant none
- // @license MIT
- // ==/UserScript==
- let window = document.querySelector("#game").contentWindow
- window.onload = (function() {
- 'use strict';
- let menu = window.document.querySelector("#appContainer").querySelector("#editorContainer").querySelector(".topMenu").querySelector(".fileMenu")
- menu.addEventListener("mouseover", () => menu.firstElementChild.querySelectorAll(".item")[2].classList.remove("disabled"))
- });