Hitbox saving existed maps

gives access to copy existing map and saving it

  1. // ==UserScript==
  2. // @name Hitbox saving existed maps
  3. // @namespace http://tampermonkey.net/
  4. // @version 2025-01-26
  5. // @description gives access to copy existing map and saving it
  6. // @author Mr_FaZ3a
  7. // @match https://hitbox.io/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=hitbox.io
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. let window = document.querySelector("#game").contentWindow
  14. window.onload = (function() {
  15. 'use strict';
  16. let menu = window.document.querySelector("#appContainer").querySelector("#editorContainer").querySelector(".topMenu").querySelector(".fileMenu")
  17. menu.addEventListener("mouseover", () => menu.firstElementChild.querySelectorAll(".item")[2].classList.remove("disabled"))
  18. });